Hello,
Do you have a suggestion as to the best way to move open-ended text answers for education into a defined category?
For example, I have two respondents who chose "other" and typed in "Business College" and "Johnson Business /Secretarial School"
- upon investigation of these two answers, they should be coded into the 4th category of my educ var (vocational)
I generated a new educ var
gen educ=EDUC
then replaced:
replace educ = EDUC[4] if EDUC_TEXT=="Business College" // ** this coded the respondent into my 6th educ category and not my 4th educ category **
Can anyone direct me how to do this? I am unsure what the "EDUC[4]" portion of my syntax is supposed to and I can't find anything about it.
Thank you!
Related Posts with Recoding open-ended answers into a category for education
Test for significance of Time DummiesHi, I am doing a FE and RE Regression and I am not sure if I should use Time Dummies (i.date) or a …
t-value too longHow can I see the full value without the e ? t= -1.5e+02 …
Is there any difference between "Sort X Y" versus. "Bysort X Y: gen A=1"I know in Bysort you have to generate something. But other than that will using Sort X Y vs. Bysort …
Add mean, sd and median names to table outputHi all I wonder if its possible add mean, sd and median names to a table output , example: Code: …
Two way fixed effects and interaction termsHello Stataforum, I'm working on a generalized difference difference model with multiple groups and…
Subscribe to:
Post Comments (Atom)
0 Response to Recoding open-ended answers into a category for education
Post a Comment