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
Sufficient control for seasonality?Hello, I have a question about how to remove seasonality in Panel data. I want to evaluate how sales…
Measurement error when a variable is in bucketsHello, I've got a variable, AGE, which in my data set is given in buckets. Meaning someone with AGE…
Sorting a variable by two dummy variablesI am working on a paper about discrimination in the labour market. I have three variables (among man…
2SLS with linear time trend.Hi all, I am estimating the following model using fixed effects including linear time trends. Cod…
Basic question on how to draw a vertical line that splits the distribution in a histogramHi all I am stuck in a basic procedure with histograms and hope someone can help. I used the follow…
Subscribe to:
Post Comments (Atom)
0 Response to Recoding into another variable
Post a Comment