Hello!
I have this categorical variable "education"
No education 0
High School 1
Collage 2
PhD 3
I want to make new variable based on existing education variable, like this:
No Education 0 1 (if you don't have education 0, if you have other education 1)
High school 0 1 (if you have high school education 0, if you have other education 1)
Collage 0 1
PhD 0 1
I know I have to use generate, but after that i'm blank.
Related Posts with how to make new variable based on existing variable?
svysetHello, I am working with the Population Assessment of Tobacco and Health data. It is a panel survey…
Interpretation of interaction terms in logistic regressionI am not being able to interpret the interaction terms properly. can please anyone help? …
Output of 'ci proportions' depends on variable formatWhy does the result of 'ci proportions x' depend on the format of variable x? Very strange. Using ve…
Case-crossover design and predictive performanceHi all, Thank you in advance for your comments and suggestions! We are conducting a case-crossover…
Testing significance of CAR in event studyDear Statalists, i have done an Event Study as described by Princeton DSS ( HTML Code: https://ds…
Subscribe to:
Post Comments (Atom)
0 Response to how to make new variable based on existing variable?
Post a Comment