Hi there I am trying to group ages into three groups (15-24) (25-34) (35-49) and generate a new variable using the function
recode age_woman (15/24= 1 "15/24") (25/34= 2 "25/34") (35/49= 3 "35/49"), generate (agegroups) label (agegroups)
However when i do that I get the following error: recode only allows numeric variables r(108);
Any idea where I am going wrong? I did the same thing for mens age and it worked fine.
Cheers,
Jess
recode age_woman (15/24= 1 "15/24") (25/34= 2 "25/34") (35/49= 3 "35/49"), generate (agegroups) label (agegroups)
However when i do that I get the following error: recode only allows numeric variables r(108);
Any idea where I am going wrong? I did the same thing for mens age and it worked fine.
Cheers,
Jess
Comment