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
Speeding up Mixlogit with large datasetsHi there, I am running a mixed logit model using the user written command mixlogit on Stata 16/MP8 …
How to make twoway line graph over group in the same figureHello colleagues, How can I make twoway line graph across grouping variable on the same figure? For…
Is there any other wrapper/executer/(executioner?) apart from -rangestat- that can run Mata functions?Good morning, I recently discovered a nice feature of the user contributed -rangestat-: one can use…
Help with collinearityHello Statalist, I'm relatively new to STATA and I'm working on a research project on education lev…
Clustering of SEs: Heteroskedasticity and AutocorrelationI am running a panel data analysis of geographic diversification (quadratic) on company performance …
Subscribe to:
Post Comments (Atom)
0 Response to How replace text value of variable with number
Post a Comment