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
Just trying to compute least square means for a repeated measures ANOVA!I can't get adjusted means for both treatment conditions (drug and placebo) across three time points…
order variables using foreachDear all, I have around 1600 variables with suffixes coming from the variable id. I was wondering w…
why the bias corredted confidence interval is missing?Hi all, why the confidence interval after bootstraping is missing? Code: * Example generated by -…
WinsorizationI have financial data (a dependent variable) that is heavily skewed with a long tail. Is it acceptab…
Cross sectional regression by year and sized-based peer groupsFirstly, Happy Holidays to everyone Now my problem. I need to run a cross-sectional regression by …
Subscribe to:
Post Comments (Atom)
0 Response to Creating a new variable by Household ID
Post a Comment