We can make summaries of individuals' experiences. First, let's count the number of different spells each individual has.
compute isemp = (empstat=1). compute isunemp = (empstat=2). compute isout = (empstat=3). agg out = * /break = pid /nemp = sum(isemp) /nunemp = sum(isunemp) /nout = sum(isout). freq nemp to nout.
We may want to know cumulative labour-market history:
get file "m:\empspells.sav". missing values all (-9 thru -1). vector dur(3). if not missing(empstat) dur(empstat) = duration. agg out = * /break = pid /dur1 to dur3 = sum(dur1 to dur3). descr dur1 to dur3.