I have a dataset where everybody has household ID and each respondent has a given economic status: "Unemployed/Student/Employed/Home Duties". I want to create a variable that records the proportion of the household which is unemployed. i.e. if there is a household of 4 members and 2 are unemployed, then I want this variable to record that 50% of the household is unemployed. Does anyone know how can I create a new variable by household ID to record this?
Thanks,
John
Related Posts with Creating a new variable by Household ID
Change the display number on the axesHi everybody. I would like to change the way observations are displayed on the axes (for example I …
Change the visualization of the data on the axesHi everybody, I would like to change how I visualize the data on the y axes. My numbers are reverse…
SignificanceI am analyzing the effect of gender on homeownership in the US and I keep finding that my female dum…
asdoc sum - does not allow analytical weightsDear Members, I am dealing with DHS dataset. I have individual sample weight (6 decimals) in my dat…
Converting *.mo file to a text fileDear Statalist Could anyone help me on converting a *.mo file to a text file (or .mata)? I am using …
Subscribe to:
Post Comments (Atom)
0 Response to Creating a new variable by Household ID
Post a Comment