Can you please recode this variable for me; Married =1 and not married =2. Recode: marital status ([married (4,5) and not married (1,2,3,6,7,8) < High school= 1 and not > High school= 2. Recode: education [< High school (1,2)] and [> High school (3,4,5,6)] I recoded the variable but did not get a positive result. Here is my recoded version. Please let me know where I made mistakes. Thanks if marital='4' then married='1'; else if marital='5' then married='1'; else if marital='1' then married='0'; else if marital='2' then married='0'; else if marital='3' then married='0'; else if marital='6' then married='0'; else if marital='7' then married='0'; else if marital='8' then married='0'; IF age < 50 then agey='1'; else if age > 50 then agey='2'; RUN; If education < High school='1' then Highschool=1; else if education < High school=2 then Highschool=1; else if education > High school=3 then Highschool='0'; else if education > High school=4' then Highschool='0'; else if education > High school=5' then Highschool='0'; else if education > High school=6' then Highschool='0';
... View more