I am at a loss here and would be grateful for any help:
I have a string variable "Other-specify." Several respondents provided text responses to this "Other-specify" variable (e.g., "farming"). I want to "move" the values of the "Other-specify" variable to existing categories of another variable "Industry," which is numeric (e.g., 1- Agriculture). I have tried this:
replace Industry = 1 if Otherspecify_TEXT=="farming"
but got the message "(0 real changes made)."
Not sure what I am doing wrong?
Any advice would be much appreciated!
Related Posts with Recoding into another variable
stataHello I have the household code, the ratio of household members to the guardian and the age of the h…
Problem manipulating large database based on conditional statements to eliminate specific observationsHello world of stats and analysis, I have dibbled a bit in STATA over my university years but my wo…
How to create an indicator of total vocabulary score for bilingual childrenHi all, I am using a dataset with vocabulary data for 5585 children who are 2 years old. We have a…
Moderation of time (count analysis vs survival regression)Hello everyone, I am struggling with the correct interpretation of an interactive term (the moderat…
Grouping observationsHello community this my first post. I'm a SAS user, new to STATA, require it for my graduate progra…
Subscribe to:
Post Comments (Atom)
0 Response to Recoding into another variable
Post a Comment