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
How to make a ttest with conditions?Hi! I don't know how to create a ttest for this null hypothesis: - H0: b1 +4b3 <= 50 - H1: b1 +4b…
If-Else IssueHello All, I have a rather interesting issue. I am attempting to use some if-else statements for so…
Delete observations with older date within one yearDear Statalists, my data set looks like this: Meeting Date Year Company Attending Person 25ma…
Vlookup in StataHello, There are four regions (Area Unit), and four people. The first table is the origin-destinati…
Difference-in-difference regression (?) with aggregate (state-level) pooled cross-sectional dataGreetings, I'm running Stata 15.1 on OSX and working with aggregate state-level data. My dependent …
Subscribe to:
Post Comments (Atom)
0 Response to Creating a new variable by Household ID
Post a Comment