IBM Support

Recoding SPSS date intervals into categories

Troubleshooting


Problem

How can I recode date intervals into a categorical variable? I have a very large data set with cases entered based on admission dates. These dates are all entered in an SPSS date variable which is called INDATE and formatted as dd.mm.yy. I want to code people according to their admission date (e.g 1 = admission between 11/1/92 and 10/31/93; 2= admission between 11/1/93 and 10/31/94; 3 = admission between 11/1/94 and 0/31/95....until 1997) such that I will be able to generate frequencies for each group and test mean differences between the groups on a number of key variables.

[{"Product":{"code":"SSLVMB","label":"IBM SPSS Statistics"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Component":"Not Applicable","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"18.0","Edition":"","Line of Business":{"code":"LOB76","label":"Data Platform"}}]

Log InLog in to view more of this document

This document has the abstract of a technical article that is available to authorized users once you have logged on. Please use Log in button above to access the full document. After log in, if you do not have the right authorization for this document, there will be instructions on what to do next.

Historical Number

17202

Document Information

Modified date:
16 April 2020

UID

swg21476150