Hello, i need help in creating age groups. My variable name is Age and i have almost 10000 cases. I want to categorize them into these age groups, 0-9, 10-19, 20-29, 30-39, 40-49, 50-59, and 60+
Another question is, i have a variable RStatus and it has 6 categories i.e. pink, red, blue, yellow, black. I want RStatus for 60+ but only black. pink, red, blue, yellow i dont need for 60+. But i do need those for rest of the age categories. In excel i can easily do this by filtering and deleting those. In stata i dont know how to do this.
Array
Related Posts with How to make age groups ?
create the day before a dateHello! I'm still working with dates and now have a new problem. If I have a date 22dec2014, I want …
Creating event time variableHi, I have a time series of stock returns with multiple event date indicators, such as the following…
Turning variable labels into variable names with a suffixHi I have data where my years are recorded in letters from H to CC (representing 1948 to 2021). The …
how could the difference of number of a variable in a panel data be shown in statahello, i want to see how many people' living status(dummy variable) have been changed using a 2-peri…
Adding multiple labels to regsaveI am saving coefficients using regsave (from ssc) and I am able to use the 'addlabel' option to add …
Subscribe to:
Post Comments (Atom)
0 Response to How to make age groups ?
Post a Comment