I currently have a variable called "Residence" which takes on two values: Urban and Rural
I'm generating a new variable called "Rural" which will take on values 1 for rural and 0 for urban. I'm creating this new variable based on this variable "Residence".
With the gen command, I'm facing problems of "type mismatch"
What should I do?
Related Posts with Generating a numeric variable from string variable
Add Confidence intervals to median splineI would like to add 95% confidence intervals to a median spline. It does not appear to be an option …
xtoprobit vs xtreg, feI want to run a fixed effects regression model in stata using panel data to examine the change in in…
Hausman testHey, when running the hausman test, should I include all variables? So dependent, independent, moder…
Test: latexIf there are \(\pm 1\%\) …
Using maps to present incidence ratesHi everyone I have calculated incidence rates (per 100 000 person years) for disease X by regions i…
Subscribe to:
Post Comments (Atom)
0 Response to Generating a numeric variable from string variable
Post a Comment