Greetings, Statalists!
I'm currently using Stata to analyze data on Political Culture in Colombia. In the survey I'm using, a variable called "P6020" contains information about the subjects' gender. Male=1, Female=2. When I use the following lines, the values change just fine, but the tags of the categories (Male and Female) change as well:
I'll show you:

Please tell me if you know how to fix it or preventing it from happening. Thanks in advance!
I'm currently using Stata to analyze data on Political Culture in Colombia. In the survey I'm using, a variable called "P6020" contains information about the subjects' gender. Male=1, Female=2. When I use the following lines, the values change just fine, but the tags of the categories (Male and Female) change as well:
Code:
*Tags are 1 for Male, 2 for Female *Replacing values corresponding to male subjects from 1 to 0: replace P6020=0 if P6020==1 *Replace values corresponding to female subjects from 2 to 1: replace P6020=1 if P6020==2 *The tags have changed to 0 (0) and Male (1)
Please tell me if you know how to fix it or preventing it from happening. Thanks in advance!
Comment