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
Error message r(699)Hi there, I'm trying to install factortest and sortl. It has worked previously, but now when I sear…
Cutting out the appropriate end of the variables Code: * Example generated by -dataex-. To install: ssc install dataex clear input float(quarter Dl…
Panel data with three dependent variablesHi all, I am pretty basic with statistics, but already have some experience with Stata. In my curr…
tsfill for time series data, ending fill at specific dates by subgroupsI have panel data, with an id variable, two time variables: t0 (first date); t1(end date), and a spe…
Help with xtreg, time fixed effects, local authority fixed effectsHi, I am new to Stata and therefore would appreciate some help with actually running my panel regres…
Subscribe to:
Post Comments (Atom)
0 Response to Recoding into another variable
Post a Comment