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
How to export variable labels using outreg2 - label option not working?Hi all I want to export my regression tables, showing variable labels instead of names, using the o…
Interpreting Oaxaca DecompositionHello everyone, I am using Oaxaca decomposition for my graduation project, where the subject is wag…
ML command could not find feasible valuesDear STATA experts: I’m learning STATA's maximize likelihood syntax by building my own ordered prob…
Use global macro to call do-file not errorDear All, I'm trying to use the following code to set up global macro and then call do file based o…
A note: fileread() assigning binary string scalarsAn observation after failing to read a Stata scalar using Stata Python sfi Scalar getString(); The s…
Subscribe to:
Post Comments (Atom)
0 Response to Generating a numeric variable from string variable
Post a Comment