Hi everybody, I am putting together a database and I am using date variables. I would like to set my missing values to something memorable e.g. "10.10.1000". However, it seems that SPSS limits the permissible date inputs to years above 1500. Is there some way around this? Thanks. |
SPSS Date "0" is number of seconds from midnight, October 14, 1582 (the beginning of the Gregorian calendar). On Tue, Jun 21, 2016 at 9:31 PM, Benjamin Spivak <[hidden email]> wrote:
|
Thanks Mark, Can it be changed? Cheers, Ben On 22 June 2016 at 15:16, Mark Miller <[hidden email]> wrote:
|
Administrator
|
No, I don't think so. But given that 9 (or 99, 999, etc) is frequently used as a missing value, why not make 9-SEP-9999 your missing value? The numeric value of that date is 265611830400. So just do this:
MISSING VALUES DateVar(265611830400). E.g., DATA LIST LIST / DateVar(DATE11). BEGIN DATA 22-Jun-2016 9-Sep-9999 END DATA. MISSING VALUES DateVar(265611830400). FREQUENCIES DateVar.
--
Bruce Weaver bweaver@lakeheadu.ca http://sites.google.com/a/lakeheadu.ca/bweaver/ "When all else fails, RTFM." PLEASE NOTE THE FOLLOWING: 1. My Hotmail account is not monitored regularly. To send me an e-mail, please use the address shown above. 2. The SPSSX Discussion forum on Nabble is no longer linked to the SPSSX-L listserv administered by UGA (https://listserv.uga.edu/). |
Free forum by Nabble | Edit this page |