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!