AGESP10.SPS (RECODES AGE OF SPOUSE D2 INTO 10 YEAR GROUPS)

 

Note: User must specify the following variables on the keep line:

1) D2

Creates variable 'AGESP10' With the following value labels:

1 'SPOUSE <25 YR '
2 'SPOUSE 25-34 YR'
3 'SPOUSE 35-44 YR'
4 'SPOUSE 45-54 YR'
5 'SPOUSE 55-64 YR'
6 'SPOUSE 65-74 YR'
7 'SPOUSE 75+ YRS '
8 'NO SPOUSE PRESENT'

ROUTINE:

RECODE D2 (1 THRU 24=1) (25 THRU 34=2)(35 THRU 44=3)(45 THRU 54=4)

(55 THRU 64 =5)(65 THRU 74=6)(75 THRU HI=7) (0=8) INTO AGESP10

VARIABLE LABELS AGESP10 'AGE OF SPOUSE'

VALUE LABELS AGESP10 1 'SPOUSE <25 YR '

2 'SPOUSE 25-34 YR'

3 'SPOUSE 35-44 YR' 4 'SPOUSE 45-54 YR'

5 'SPOUSE 55-64 YR' 6 'SPOUSE 65-74 YR'

7 'SPOUSE 75+ YRS '

8 'NO SPOUSE PRESENT'