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
Data Categorization txt fileDear All I have daily share price data in a txt file. The issue is to split the variables into dif…
Odds ratio and ConHi all, I have a three-part question from a logistic regression. In the case of this study, I have t…
Multiple lineal regression / Dummy variable, interactions and confounding variablesHi. I apologize if this is no a question I should post here. I am trying to analyze the interaction …
How to export this table to excel from statasysuse auto tab foreign,sum(price) This code generates a table that I need to export to Excel. Can …
country/regional fixed effectsHi I have a question regarding country fixed effects. I am quite new to this subject, so apologies f…
Subscribe to:
Post Comments (Atom)
0 Response to destringing
Post a Comment