************WAP*********
COMPUTE WAP=0.
EXECUTE.
DO IF (q10>=15 AND q10<=98).
RECODE WAP (0=1).
END IF.
EXECUTE.
FREQUENCIES VARIABLES=WAP
/ORDER=ANALYSIS.
DO IF (q10=99 & (q11>=1 AND q11<=4)).
RECODE WAP (0=1).
END IF.
EXECUTE.
FREQUENCIES VARIABLES=WAP
/ORDER=ANALYSIS.
DO IF (q10=99 & q11=5 & (q8>=5 AND q8<=12)).
RECODE WAP (0=1).
END IF.
EXECUTE.
FREQUENCIES VARIABLES=WAP
/ORDER=ANALYSIS.
DO IF (q10=99 & q11=5 & q16=3).
RECODE WAP (0=1).
END IF.
EXECUTE.
FREQUENCIES VARIABLES=WAP
/ORDER=ANALYSIS.
*************CREATE EMPLOYED, UNEMPLOYED AND ECONOMICALLY NOT ACTIVE*****************
COMPUTE REC_POB=0.
EXECUTE.
************EMPLOYED*********
DELETE VARIABLE REC_POB.
DO IF (q18=1 & q19=1).
RECODE REC_POB (0=1).
END IF.
EXECUTE.
FREQUENCIES VARIABLES=REC_POB
/ORDER=ANALYSIS.
DO IF (q18=1 & q19=2 & q20=1 ).
RECODE REC_POB (0=1).
END IF.
EXECUTE.
FREQUENCIES VARIABLES=REC_POB
/ORDER=ANALYSIS.
DO IF (q18=2 & q20=1 ).
RECODE REC_POB (0=1).
END IF.
EXECUTE.
FREQUENCIES VARIABLES=REC_POB
/ORDER=ANALYSIS.
DO IF (q18=2 & q20=2 & q21=1 & (q22>=1 AND q22<=5)).
RECODE REC_POB (0=1).
END IF.
EXECUTE.
FREQUENCIES VARIABLES=REC_POB
/ORDER=ANALYSIS.
DO IF (q18=1 & q19=2 & q20=2 & q21=1 & (q22>=1 AND q22<=5)).
RECODE REC_POB (0=1).
END IF.
EXECUTE.
FREQUENCIES VARIABLES=REC_POB
/ORDER=ANALYSIS.
DO IF (q18=2 & q20=2 & q21=1 & (q22>=6 AND q22<=8) & (q23>=1 AND q23<=5) & (q24>=1 AND q24<=3) & q27=1 ).
RECODE REC_POB (0=1).
END IF.
EXECUTE.
FREQUENCIES VARIABLES=REC_POB
/ORDER=ANALYSIS.
DO IF (q18=1 & q19=2 & q20=2 & q21=1 & (q22>=6 AND q22<=8) & (q23>=1 AND q23<=5) & (q24>=1 AND q24<=3) & q27=1 ).
RECODE REC_POB (0=1).
END IF.
EXECUTE.
FREQUENCIES VARIABLES=REC_POB
/ORDER=ANALYSIS.
************UNEMPLOYED*********
DELETE VARIABLE REC_UPOB.
COMPUTE REC_UPOB=0.
EXECUTE.
DO IF (q18=2 & q20=2 & q21=1 & (q22>=6 AND q22<=8) & q24=1 & (q27>=2 AND q27<=3) & q28=1 & q29=1 & (q30>=2 AND q30<=8) & q32=1& TEST=9).
RECODE REC_UPOB (0=1).
END IF.
EXECUTE.
FREQUENCIES VARIABLES=REC_UPOB
/ORDER=ANALYSIS.
DO IF (q18=1 & q20=2 & q21=2 & (q22>=6 AND q22<=8) & q24=1 & (q27>=2 AND q27<=3) & q28=1 & q29=1 & (q30>=2 AND q30<=8) & q32=1& TEST=2).
RECODE REC_UPOB (0=1).
END IF.
EXECUTE.
FREQUENCIES VARIABLES=REC_UPOB
/ORDER=ANALYSIS.
DO IF (q18=2 & q20=2 & q21=2 & q28=1 & q29=1 & (q30>=2 AND q30<=8) & q32=1 & TEST=9).
RECODE REC_UPOB (0=1).
END IF.
EXECUTE.
FREQUENCIES VARIABLES=REC_UPOB
/ORDER=ANALYSIS.
DO IF (q18=1 & q20=2 & q21=2 & q28=1 & q29=1 & (q30>=9 AND q30<=11) & q31=1 & q32=1 & TEST=2).
RECODE REC_UPOB (0=1).
END IF.
EXECUTE.
FREQUENCIES VARIABLES=REC_UPOB
/ORDER=ANALYSIS.
DO IF (q18=1 & q20=2 & q21=2 & q28=1 & q29=1 & (q30>=2 AND q30<=8) & q32=1 & TEST=2).
RECODE REC_UPOB (0=1).
END IF.
EXECUTE.
FREQUENCIES VARIABLES=REC_UPOB
/ORDER=ANALYSIS.
************UNEMPLOYED1*********
DELETE VARIABLE REC_UPOB1.
COMPUTE REC_UPOB1=0.
EXECUTE.
DO IF (q18=2 & q20=2 & q21=2 & q28=1 & q29=2 & q31=1 & q32=1 & TEST=9).
RECODE REC_UPOB1 (0=1).
END IF.
EXECUTE.
FREQUENCIES VARIABLES=REC_UPOB1
/ORDER=ANALYSIS.
DO IF (q18=1 & q20=2 & q21=2 & q28=1 & q29=2 & q31=1 & q32=1 & TEST=2).
RECODE REC_UPOB1 (0=1).
END IF.
EXECUTE.
FREQUENCIES VARIABLES=REC_UPOB1
/ORDER=ANALYSIS.
********TEST*********
COMPUTE TEST=0.
EXECUTE.
RECODE q19 (1=1) (2=2) (ELSE=9) INTO TEST.
EXECUTE.
FREQUENCIES VARIABLES=TEST
/ORDER=ANALYSIS.
Comments
Post a Comment