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?
Meta-regression with WLS: Wrong sign due to weightingDear Statalist, I'm asking for advice to solve a problem with my meta-regression model based on a W…
Gravity model, low R2-withinHi all ! I'm running a bilateral trade panel data of 42 reporter with 186 partner for the year 2015…
Using Wald Test for Complex Interaction ModelsDear all: My name is Siyu. I am running a random-effects logit model involving many interaction ter…
Panel Data Missing Observations! SolutionDear Statalisters, I am currently running analysis on a 2-period panel data set from China. I use a…
rename all words of localDear all, I have trouble finding my way through all possible local manipulations to find what I nee…
Subscribe to:
Post Comments (Atom)
0 Response to how to make new variable based on existing variable?
Post a Comment