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
Abrreviate variable name Stata 15.1Hi all, I have updated my Stata installation from 13 to 15.1. It seems this new version does not use…
Sample size calculation using one sided test with power commandHello all, I am trying to run a test to determine the sample size where the outcome is proportions …
Cut name variable into two variables to get casteHello I am trying to segregate the name variable into two separate name and caste variables. (The s…
When to use logged / not logged variablesHi All, I am carrying out research for my bachelor thesis looking at the effect of gin consumption …
how to use regexm to analyse string variablesDear All Can anyone help me in finding an easier way to categories open ended questions. an examp…
Subscribe to:
Post Comments (Atom)
0 Response to Recoding into another variable
Post a Comment