Hi! I probably got a simple problem.
Let us say I got a variable, called States, with numbers from 1-30. Then I want to make a new variable of these numbers, called Region, where I would only include the numbers: 5, 11, 14, 23 and 29.
Is there a simple solution for my problem?
Related Posts with Make a new group variable of a variable
Adding 4 arguments in setstars() of asdoc / asdocxI seem to experience an issue with the setstars() arguments using asdoc or asdocx. It seems that it …
Format regression coefficients using file writeI am outputting non-standard tables to TeX and using file write following this example: https://gith…
fixed effects and and vce(robust) in poisson regressionHello everyone, I am aware that this is more of a statistical quuestino than a question on Stata but…
long format data, creating a new variable (loop)Dear Statalist, I have data in long format with observation year: 2000 to 2019, n=125 000. I have a …
Pasting the data from Excel to Stata converts values of the variableDear Stata Members I am dealing with some financial data like income, total assets, etc. Many of the…
Subscribe to:
Post Comments (Atom)
0 Response to Make a new group variable of a variable
Post a Comment