Hello,
I am a master's student. I am working with an individual level dataset with household id (hhid). I have created a unique id for each individual in the household. I need to create a household size variable, basically which tells me the total number of members in the household. This is the command I found: bysort hhid egen=count(gender). Can someone please tell me if this is right? Cheers!
Related Posts with Creating a household size variable
What is wrong with my merge? (data examples are provided)I am merging the following two datasets. But I got 0 matched ((_merge==3) is zero). The code I used …
Including all values for only one over() variable in a bar chartI have a dataset with a "fine" variable that can take many values, and an unrelated "coarse" variabl…
Matrix - loop across variablesHi there, I wonder if anybody could help. This might be very obvious to more experienced users so I…
Statistical significance for sigma_u and rho from Stata’s xtprobit commandDear all, I'm estimating a dynamic random effects probit model assuming a first order Markov proces…
Creating yearly and monthly panel to get job transition variableI have been working with CPS ASEC and basic monthly sample. My sample is from 1995-2005. I think it…
Subscribe to:
Post Comments (Atom)
0 Response to Creating a household size variable
Post a Comment