Dear Stata Specialist,
I have a question about destring some non-numeric variables. I know in generate I can do destring variable, replace.
But if the variable contains non-numeric characteristics, for example, it is coded as AA1101, AA1102, AA1103, etc. What should I do? I knew encode will work, I think after encode and generate a new variable it will has the value from AA1101, AA1102, AA1103 change to 1, 2, 3... etc. But my problem is for this variable it contains more than 500K observations, it doesn't allow me use encode as it says too many observations..
Any suggestions??
Thanks
Yuchen
I have a question about destring some non-numeric variables. I know in generate I can do destring variable, replace.
But if the variable contains non-numeric characteristics, for example, it is coded as AA1101, AA1102, AA1103, etc. What should I do? I knew encode will work, I think after encode and generate a new variable it will has the value from AA1101, AA1102, AA1103 change to 1, 2, 3... etc. But my problem is for this variable it contains more than 500K observations, it doesn't allow me use encode as it says too many observations..
Any suggestions??
Thanks
Yuchen
Comment