I have six columns:
age01 ... age06
They contain a 1
or 0
depending on whether a respondent fits into that age category.
The age categories are mutually exclusive, respondent cannot answer 1 to more than 1, and at least 1 must equal 1.
How can I recode this such that I get a variable with:
respondent age_category
1 age01
2 age01
3 age04
4 age05
5 age06
Once I get this, the next step is to swap out each one of these for a mean value. ie. Age0 -> 24.5. But I am able to do that from the format above.