So I have a variable education that has lots of values in text specifying 'bachelor 1', 'bachelor 2' and 'bachelor 3' for each respondent. However, I want to change them to respectively 1, 2 and 3 so that I can adequately use the variable in a regression analysis.
How can I replace these text variables with specific numbers? (Note: stata says that the text values are numerical, which I do find rather weird)
Related Posts with How replace text value of variable with number
Omitted variables in a fixed effect model but low correlation between variables. What's going on?I have two indicator variables, Female and Immigrant, which are omitted when I run a fixed effect re…
actest for postestimation: run the original regression with lags, or without?Running Stata 14 on Windows 10. I'm trying to make sure I'm implementing actest correctly to test fo…
svmat variable not found?I am trying to run the following code: Code: //create the dataset for the forestplot. matrix ipd =…
Help with Panel GMMDear All, I hope everyone is fine and safe. I have data for about 120 countries for Five-Time perio…
Combining several smoothed plots into one paneI have longitudinal data and want to examine inter-individual differences in the within functional f…
Subscribe to:
Post Comments (Atom)
0 Response to How replace text value of variable with number
Post a Comment