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
stripplot specificationsDear colleagues I have a variable named Total Compensation1 and another called Affiliationindex1 (f…
Rolling regression or loops - missing valuesDear All I have a peculiar issue I wish to share with you, in the hope of receiving some advice. I …
Missing values, but no gaps in the dataDear All, I have the following data: Code: * Example generated by -dataex-. To install: ssc inst…
graph pie with some of percentagesHow to display the fraction when percentage is above 20%, I know how to display all percentages Cod…
Export browse table to ExcelHi there, is there a command that exports the whole data currently in memory to Excel? Practically,…
Subscribe to:
Post Comments (Atom)
0 Response to Creating a new variable by Household ID
Post a Comment