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
Splitting wordsHi Everyone, Bellow an example of the data I have. I need to use only the cities "City" and drop "C…
conditional logit modelHello I am trying to use conditional logit model in order to see why people go to a specific neighbo…
How to extract 4 specific columns from tab resultsHi all. I am trying to extract 4 columns from the results. The code below was designed for a binary …
Instrumental variableDear all, I will appreciate your help on this. I have an independent variable which I suspect to be…
Extracting 4 specific columns from a matrixHi all. I am trying to extract 4 columns from the results. The code below was designed for a binary …
Subscribe to:
Post Comments (Atom)
0 Response to Recoding into another variable
Post a Comment