5.2.2 Subsidiary dimensions in LEM: SPSS syntax

 
* The technique involves autorecoding each unit of the subsidiary 
* structures from the latest version of the base unit as used for the 
* models. 
* For this example, the base unit is {h/w}bst4, and we produce 
* subsidiary dimension indicators for employment status, major and minor group, 
* and major group by status. 
get file="revisions1.sav". 
compute pid2=pidid + 1000000. 
sav out="mtch1.sav" /keep=pidid hbst4 hempst4 h1gp4 h3gp4 h1gpst4 . 
sav out="mtch2.sav" /keep=pid2 wbst4 wempst4 w1gp4 w3gp4 w1gpst4 /rename (pid2=pidid) 
   (wbst4 wempst4 w1gp4 w3gp4 w1gpst4 = hbst4 hempst4 h1gp4 h3gp4 h1gpst4 ). 
add files file="mtch1.sav" /file="mtch2.sav" /by=pidid. 
sort cases by hbst4 pidid. 
compute first=1. 
if (hbst4=lag(hbst4)) first=0. 
fre var=first. 
select if (first=1). 
write out="temp10.dat" / hempst4. 
write out="temp11.dat" / h1gp4. 
write out="temp13.dat" / h3gp4. 
write out="temp15.dat" / h1gpst4. 
execute. 


Return to Subsidiary dimensions


Last modified 14 February 2002
This document is maintained by Paul Lambert (paul.lambert@stirling.ac.uk)