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)
0 Response to How replace text value of variable with number
Post a Comment