My variable "q2" has two values: 1 and 2. Their labels are No and Yes, respectively.
Now I want to change it to 0==No, 1==Yes.
I know one method: generating a new variable. Do we have better method that can replace current q2 instead of generating a new var? Because I've already have a lot of variables.
Many thanks in advance!
Related Posts with How to change value labels?
pert distributionhello i would like to know how to generate a PERT distribution from a low, high, and mean value say …
Student and Subject Fixed effectsHi, I am running a panel data with 3000 observations and each student has two subjects recorded. I…
Restrictions to parametersI can't figure out how i should put restriction to a parameter. I want to measure a group within dif…
Why the local value in a loop changes after use another data-set ?I have two datasets. The first one contains the following data. The data name is Forloop.dta. Code:…
Remove accents on a string variable in stataDear everyone, I would like to know if someone knows a STATA code that I can use to remove accents …
Subscribe to:
Post Comments (Atom)
0 Response to How to change value labels?
Post a Comment