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
Related Posts with destringing
Best way to improve processing speed for large data sets (~3gb)How much will more RAM help me with processing speed. I am working with a dataset of 87 million rec…
Hausman Test FailedHi! my name is Karina. I run a Hausman test on my stata using command: quietly xtreg ecgrowth jubgr…
Brant Test Significance QuestionHello everyone. Thank you all for taking the time to answer other questions on this forum, it had be…
How to deal with multicollinearity when adding fixed effects dummies in regression with cross sectional data?Hello, I have cross sectional data with 26 groups. I estimated a probit and fracreg regression for …
scatter Y X || lfit Y X ||, by(variable)Good evening, I'd like to run scatter Y X || lfit Y X ||, by(variable) but have everything on one g…
Subscribe to:
Post Comments (Atom)
0 Response to destringing
Post a Comment