Dear all,
I have a dataset which has been imported with Survey CTO. The dataset is at household level, however there are some questions that have been asked to all the members of the household (like: have you been ill in the last 30 days?) In this case, the variable relative to that question is reported with at unserscore at the end, followed the number referring to that person in the household (a number from 1 to 15). E.g.: e1a_3 is the reported answer for the 3rd person in the household.
Moreover, some of these individual-level questions are again subdivided, meaning that each person in the household could report more than one illness and that, for each illness, the type of illness is reported (malaria, flu, etc). E.g.: e1b_3_2 is the type of illness that individual 3 of the household reported as second illness in the last 30 days.
The problem is: I need to create a dummy variable for each type of illness, because I need to know, across all households, how many people got each illness. I need this information because I subsequently have to regress the type of illness on the presence of medical support in the neighborhood. What can I do? I tried tab, gen and also xpose and reshape, but none of them seems to work properly, do you have any suggestions?
Thank you!
Best,
Elisabetta
I have a dataset which has been imported with Survey CTO. The dataset is at household level, however there are some questions that have been asked to all the members of the household (like: have you been ill in the last 30 days?) In this case, the variable relative to that question is reported with at unserscore at the end, followed the number referring to that person in the household (a number from 1 to 15). E.g.: e1a_3 is the reported answer for the 3rd person in the household.
Moreover, some of these individual-level questions are again subdivided, meaning that each person in the household could report more than one illness and that, for each illness, the type of illness is reported (malaria, flu, etc). E.g.: e1b_3_2 is the type of illness that individual 3 of the household reported as second illness in the last 30 days.
The problem is: I need to create a dummy variable for each type of illness, because I need to know, across all households, how many people got each illness. I need this information because I subsequently have to regress the type of illness on the presence of medical support in the neighborhood. What can I do? I tried tab, gen and also xpose and reshape, but none of them seems to work properly, do you have any suggestions?
Thank you!
Best,
Elisabetta
Comment