How do I recode my dummy variables please? I have 3 categories 0,1,2 and I mistakenly coded 1 for 2 so I need to switch it around. 0 is fine but 2 should be 1 and 1 should be 2. I have labels already defined so how would I redefine the labels accordingly as well? Thank you.
Related Posts with recoding dummy variables
multiple random sample from a dataI created a data with 100,000 obs with uniform distribution and also created information for educati…
Stata local macros not displayingHello, I am trying to rescale weights within a single NSFG survey wave to have a mean of 1, however …
R^2 for diff-in-diffI'm estimating a diff-in-diff model with: Code: xtdidregress (y) (treated) [pweight=my_weights], g…
How to reshape/convert a household data set in the wide format to long formatHi family, I have a data set that the individual household member's information is presented in the …
Merging two datasets to calculate an amount of days between two datesDear Statalisters, I'd like my data to be confidential so please forgive me if I remain vague durin…
Subscribe to:
Post Comments (Atom)
0 Response to recoding dummy variables
Post a Comment