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?
Creating a categorical variable from multiple variablesI am working with county-level panel data. I am currently trying to create covariates for my regress…
Can anyone help me fix the problem of this egen code?I have a large panel data set. For each id, it has tons of observations on different days (several y…
How to use collapse in my panel data set?I have a panel data set. Every id has tons of observations. I also create a dummy, called non, which…
how to evaluate goodness of fit of GSEM?Hello everyone, I am new to SEM. My model has a count mediator and a continuous outcome, so I am us…
force destringhi! In a previous post someone mentioned that I had to be careful when forcing to destring because …
Subscribe to:
Post Comments (Atom)
0 Response to How to change value labels?
Post a Comment