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
Panel Probit/Logit Regression and time dummies- What to use?Hi all, I'm interested in running a probability model but I have some questions regarding with the …
Firpo, Fortin and Lemieux methodology- recentered influence function and oaxaca decompositionDear all, I want to use the methodology defined by Firpo, Fortin and Lemieux in paper Decomposing w…
How to calculate Jagadeesh and Titman (1993) momentum strategies in STATAI am a PhD student and working on JT(1993) momentum strategies. I am looking for a code in STATA to …
Catplot column percentageHello all, I am trying to produce a vertical bar graph using 3 categorical variables: 1. numeracy …
How to make group-level variable?Hello, I want to do multilevel analysis - and I have encountered a problem. I want to do an analysis…
Subscribe to:
Post Comments (Atom)
0 Response to How replace text value of variable with number
Post a Comment