Hi !
I am using a DHS Household data. I have one record for each household. This is an example of how the data looks like:

I want to create a dummy variable =1 if there are one or more members older than 60 in a household (if age_* >= 60), but I cannot figure out a quick way to do it rather than creating 27 dummies for each age_*.
Any advice would be greatly appreciated.
Regards
I am using a DHS Household data. I have one record for each household. This is an example of how the data looks like:
I want to create a dummy variable =1 if there are one or more members older than 60 in a household (if age_* >= 60), but I cannot figure out a quick way to do it rather than creating 27 dummies for each age_*.
Any advice would be greatly appreciated.
Regards
Comment