Hey everyone,
I have received a data set where the sender incorrectly assigned the wrong codes for my sex variable. Instead of having male, female, and other as 0, 1 and 2 respectively; they have instead assigned 1 as male, 2 as female, and 3 as other. I have tried to fix this with my commands and while it works for female and other, when typing the command for male replaces it with 3.
I would like to replace the code for male from 3 to 0. Is there a way to change the label codes itself?
Thanks very much for the help!
Related Posts with Changing Label Code in Label
How to create balanced dataset from unbalanced datasetHi all, I have a dataset which looks like this: Code: * Example generated by -dataex-. To install…
import test.xmlDear All, Suppose that I run the following regressions and use (ssc install) outreg2 to save estimat…
Plotting polynomial regressionHi there, I am trying to plot a polynomial regression between the variables hiscam and my third ord…
Probit versus marginsDear all, I am testing the effect of a policy using a DID strategy, I get positive and significant …
Import delimited - ignoring linebreaksHello, I have (random) linebreaks that I cannot remove with Notepad++ before importing. Three observ…
Subscribe to:
Post Comments (Atom)
0 Response to Changing Label Code in Label
Post a Comment