I would be grateful for advice on whether I need to execute the commands step by step (in what sequence?) or if I combine all the commands. I have 6000 observations in total but only need to segregate those in specific ages (currently they are continuous) which are 50 and above. Out of these observations, I need to drop those who are retired and leave with only 3 other categories (work full time, work part time and unemployed). Then I need to further subdivide them into 4 age categories 50-54, 55-59, 60-64, 65+. How should I do it? Thank you so much.
Related Posts with combining commands to keep and drop certain observations
missed ANOVA Matrix in OLS regressionArray Hi, it is my results for Ols regression and doesn't have ANOVA matrix but my tutor results sho…
Esttab produces wrong resultsHello, I conducted logit regressions using eststo for three different countries and then put the re…
Quantile regressionHello, I'm doing a thesis on the basis of RAND HIE data. I would like to run a quantile regression w…
Two errors - don't understand whyCan anyone advise? Code: . use "Z:\Data\jt\survival.dta" . capture erase "Z:\Data\jt\file.dta" . …
Create a dummy with 2 conditionHi everyone, I am a university student, so I am a beginner with STATA. My question is simple: I have…
Subscribe to:
Post Comments (Atom)
0 Response to combining commands to keep and drop certain observations
Post a Comment