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
Create rank depending on 2 variablesHey Stata Community! I have a question concerning generating a new variable. My dataset looks like…
Testing Parallel Trend AssumptionI'm working on a Difference-in-Difference model. Unfortunately, I have very little experience with t…
Sensitivity and specificity interpretationHi, I've run an experimental survey (this is social science), with two treatment variables, using l…
tfdiff error messageHi everyone, I am having an issue with the command tfdiff. My data is more or less as follow: nu…
Two questions about marginal effects (xtreg)Hello! I want to evaluate how sales of a specific product change as its price increases (due to a t…
Subscribe to:
Post Comments (Atom)
0 Response to Recoding
Post a Comment