defining missing values for a date variable

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

defining missing values for a date variable

old_hand
I have a large data set with a date variable, formatted dd.mm.yy
I can't figure out what to do with missing values - trying to add a value through variable view doesn't work. Any clues?
Reply | Threaded
Open this post in threaded view
|

Re: defining missing values for a date variable

Jon K Peck

The easiest way to do this is to use Define Variable Properties.  It will show you a list of the actual distinct date values, and you can assign missing codes by selecting them in the grid.

SPSS date variables have values in seconds, so it is hard to assign these in the Data Editor or via syntax, but DVP takes care of this for you.

You may need to increase the value count in the starting dialog for DVP.

If your dates are actually string values, DVP will still display them in a grid, and you can select accordingly.


HTH,
Jon Peck
SPSS, an IBM Company
[hidden email]
312-651-3435



From: old_hand <[hidden email]>
To: [hidden email]
Date: 04/19/2010 10:25 AM
Subject: [SPSSX-L] defining missing values for a date variable
Sent by: "SPSSX(r) Discussion" <[hidden email]>





I have a large data set with a date variable, formatted dd.mm.yy
I can't figure out what to do with missing values - trying to add a value
through variable view doesn't work. Any clues?
--
View this message in context:
http://old.nabble.com/defining-missing-values-for-a-date-variable-tp28287696p28287696.html
Sent from the SPSSX Discussion mailing list archive at Nabble.com.

=====================
To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD