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
How to check panel model's robustnessGreetings! Please, kindly let me know how to conduct postestimation tests for panel model in order …
How to store the beta/standardized coefficients after a regressionIs there a way to store the beta/standardized coefficients after a regression? For example, how can…
Multilevel Mixed modellingHi there, I am new to the STATA program (and forum), so excuse me if my question sounds unclear/vag…
Gen Variable: Percentage Share (Row)Dear Statalisters, I'd like to calculate the percentage share of "experience" a member has in its p…
Effect of msising dataHi all, I want to look at the effect of policy on the change in working hours for a certain age gro…
Subscribe to:
Post Comments (Atom)
0 Response to destringing
Post a Comment