Hello,
I was wondering if anyone could help me destring certain variable in my dataset. I have a variable with observations that contain underscore "_". For example: "448_12132_01". STATA recognises the variable with these observations as a string variable. However, I need to turn this into numerical variable, so that I can categorise the observations by creating dummy variables.
OR
is there anyway I can create a dummy variable without destringing this certain variable?
* I used: destring X, gen(Y) force
but it just generates blanks
Cheers,
Aslan
0 Response to destringing
Post a Comment