I am working in a dataset that has both household and individual level variables. We have a total of 1,217 households in the sample. I'm trying to figure out how many households in the sample have had at least 1 individual diagnosed with malaria in the last twelve months. Each household survey asks questions about individuals in the household. So, the variable inm1_malaria is an individual level variable and represents the question "Has NAME been diagnosed with malaria in the last 12 months?
When I tab inm1_malaria (the individual level variable), I of course get more observations than total number of households in the sample because there are more than 1 individuals per household. When I say: tab hh_no if inm1_malaria==1, I still get more observations than we have households. It's counting each hh_no each time that hh_no is assigned to an individual in the dataset. So if there are 4 individuals with hh_no CHP/02/0004, it is counting that as 4 separate households.
Any advice on how to get household level data from the individual observations nested within the household would be much appreciated.
Best,
Nancy
Related Posts with Multiple individuals per household id number: how to get household information from individual observations
Problem Renaming Variables That Contain "."Hello, I am using the 2018 dataset from Latinobarometro. A lot of variables are named something lik…
Plotting multiple bar graphs with CII want to plot crude and age-adjusted rates with CI on a single graph. I'm using the following code …
How to create individual panel data through merging two cross sectionsHello All I am in need of desperate help regarding my model. I have cross-section data done for two …
Trying to create a Unique Identifier for a Survey Data. (Have tried following other posts but nothing has worked)Hello, I hope this post finds you well ! The version of STATA being used is 14.2 The following is a…
how to deal with '' xthenreg'' for dynamic threshold modelsDear all Finally we get the stata' command to deal with the endogeneity issue for threshold model, …
Subscribe to:
Post Comments (Atom)
0 Response to Multiple individuals per household id number: how to get household information from individual observations
Post a Comment