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
CEM v/s psmatch2Hi everyone, could anyone please tell me where does the algorithm of CEM and psmatch2 differ? I have…
I would like to turn my imperfect edgelist into a perfect one (with all possible pairs of nodes of a network)Hi everyone. To put it very briefly, I have data on different individuals and their connections with…
Independent Variable predicts is highly correlated with dependent variable.I will be very grateful for your help on this issue. Independent Variable (Last Birth CS) is highly …
Need help with surveysetI have a study using HCUP National Inpatient Sample. My commands were all working until I got to hos…
Merging m:m - it seems to work for me. Why critise? Appreciate your feedbackAs you can see in my previous posts. I currently have one huge dataset called procedure. This shows…
Subscribe to:
Post Comments (Atom)
0 Response to How replace text value of variable with number
Post a Comment