Re: Recode syntax problem? (2)

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Re: Recode syntax problem? (2)

John F Hall
Sorry, left a bracket off in mult resp.
 
do repeat     x = ces04_CPS_S3 ces06_CPS_S3 ces08_CPS_S3
                       /y = education1 to education3 .
recode  x    (1 thru 5=0) (6, 7 = 1) (8 11=2) (98, 99 = sysmis) into y .
end repeat .
 
freq education1 to education3 .
 
mult resp education (education1 to education3 (0,2))
    /freq education .