A real world example of the need for labled missing values.

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

A real world example of the need for labled missing values.

Art Kendall
Reply | Threaded
Open this post in threaded view
|

Re: A real world example of the need for labled missing values.

Art Kendall
How to have labeled missing values on date variables.
New file.
data list list /MyDate (adate10).
Begin data.
12/25/2021
7/4/2021
5/5/2000
12/25/2021
7/4/2021
5/5/2000
12/25/2021
7/4/2021
5/5/2000
10/15/1582
10/16/1582
12/25/2021
7/4/2021
5/5/2000
10/15/1582
10/16/1582
10/17/1582
12/25/2021
7/4/2021
5/5/2000
10/15/1582
10/16/1582
10/10/1800
end data.
display dictionary.
missing values MyDate ('10/15/1582' THRU '10/20/1582', '10/10/1800').
Value labels MyDate
'10/15/1582' 'unknown'
'10/16/1582' 'refused to answer'
'10/10/1800' 'forgot to ask'.
display dictionary.
frequencies MyDate.
Art Kendall
Social Research Consultants
Reply | Threaded
Open this post in threaded view
|

Re: A real world example of the need for labled missing values.

jkpeck
Note this requirement, quoting the CSR,
values must be expressed in the same date format as the defined date format for the variable.