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
Generate new variable pasting numbers or textHello, I'm working with U.S natality birth data, and I need to merge this data by year and county wi…
Creating a New VariableHello Statalist Folks, I have the following annual public survey data where children are being coun…
Searching for variable string content into another string variableI have interviewed heads of households and asked their fathers' names. In some cases the father is a…
Pre and post eventHello, I am using Stata 16.1 and I have the following data: gvkey fyear pifo 007435 2015 2424 00…
cmxtmixlogit - expected probabilities and sign of margin effects First of all, I would like to say that it is my first thread in Statalist. I apologize for any mist…
Subscribe to:
Post Comments (Atom)
0 Response to combining commands to keep and drop certain observations
Post a Comment