6.3 Duration and individual characteristics

We may be interested in association between duration and individual characteristics such as age (at start of spell) or gender. We can match in such characteristics from XWAVEID or XWAVEDAT.

get file "m:\empspells.sav".

match files file=*/table="s:\bhps\spss\xwaveid.sav"/by=pid.

compute dob = 12*(doby-1900) + dobm.
if dobm<0 dob = 12*(doby-1900) + 6.
if doby<0 dob = -9.

missing values all (-9 thru -1).
compute age = (start - dob)/12.

means duration by sex.
means duration by empstat by sex.
corr duration age.



© Brendan T. Halpin (e-mail), GNU Free Documentation Licence