Dear Statalist,
Using Stata 14 I am trying to change the numeric value of one variable while keeping the value label:
gives the value label of "yes".
gives the numeric value of "111".
Now I want to change "111" to "1" without disregarding the value label and having to create a new variable. It would be something like the following command (which unfortunately does not work.):
Any help is very much appreciated!
Using Stata 14 I am trying to change the numeric value of one variable while keeping the value label:
Code:
tab x
Code:
tab x, nolabel
Now I want to change "111" to "1" without disregarding the value label and having to create a new variable. It would be something like the following command (which unfortunately does not work.):
Code:
recode consent (111 = 1 yes)
Comment