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
The intersection of two Chinese variablesDear All, I found this question here (in Chinese). The data set is Code: * Example generated by -da…
Synthetic Control - minimum number of obs?Can I build a synthetic control with 6 pre-treatment observations and 4 post-treatment? Is it valid,…
graph with many linesDear All, Suppose that I have the following data Code: * Example generated by -dataex-. To install:…
How to Drop Duplicate ID Observations if There are Multiple Conditions I Want to ApplyHello Everyone, I hope that you could help me with the below. I have a cross-sectional dataset of …
Loop and Append .dta filesHello All, I am trying to import d.ta file and append them, what is wrong with this code? For some …
Subscribe to:
Post Comments (Atom)
0 Response to Recoding
Post a Comment