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
Merging set of variablesHi! I'm working with my master thesis and struggling av bit with handling some of my variables in St…
IIA assumption test after conditinal logitHi, Is there any way to test IIA assumption following conditional logit(clogit)? Found it for mlogit…
Panel data analysisI am working on a dataset that you can find attached, which displays as dependent variable the votes…
VIF in a mode with dummies/fixed effectsDear Statalists, I have 3 questions on the use of VIF in a model with dummies or fixed effects. The …
How to reconvert the set of values that a variable can assume to a new set of values simultaneouslyHello, I have a variable called HighEd1 that can assume values from 1 to 8 and each value stands fo…
Subscribe to:
Post Comments (Atom)
0 Response to Creating a household size variable
Post a Comment