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
Using racial/ethnic demographics as the independent variables in multivariate linear regression?Hello! I am conducting multivariate linear regression using -regress- of Google trend interest (a 10…
Report the goodness of fit for the relogit model in StataDear all, I am running the relogit model on a binary dependent variable characterised by 10,890 zer…
Using return matrix from polychoric correlationHello all, I am using stata version 17. I ran a polychoric correlation on about 100 variables. The…
Long Panel: I use AB but It is better PVAR or panel ARDL?Hello, My sample is 27 countries over the period 1970-2020. Code: * Example generated by -dataex-…
Combining two numerical variables.I am using the American commuinty survey dataset and I have two numerical variables COSTELEC "annual…
Subscribe to:
Post Comments (Atom)
0 Response to Recoding
Post a Comment