Hello,
I have the variable gender which was originally coded as 1 = male and 2 = female. I went in and changed the code with the following: recode gender (1=0) (2=1). This led to it coming out as: male = 1 and 0 (this has no label attached to it because I made a permanent mistake).
My goal is to code male = 0 and female = 1 with the label "male and female" attached to each value and was wondering how I can achieve this.
Related Posts with Recoding
Any way to recover results after a crash?Hi, This might sound silly as I had no idea about the -preserve- command until I started looking fo…
making loop with the values within the variableHello, I have one of the variables G1 which has values from 1 to 17. Then I want to make a loop as …
Splitting a data set into four data sets over all observations but keepin all variables for each splitted data setHi All, I am using a data set which contains more than 50 variables and 0.36 observations. I need to…
Generating categorical dummy variableHi all, I need some help with this. I would like to generate a new binomial variable EDUCATION equ…
Indicator for more than one marital changeDear Stata Users, I have a panel dataset and I would like to identify marital changes (var marital)…
Subscribe to:
Post Comments (Atom)
0 Response to Recoding
Post a Comment