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
Controlling for confounders in t-testsHi all, I'm a little stuck on a paper looking at differences in fasting glucose levels between diff…
Aggregating variablesGood day everyone, I am still an undergrad student so please excuse any elementary questions. I am…
How can I Make these code to loop code ?Hi. I want to make loop code of below. Code: gen A01_GLU0_new =. replace A01_GLU0_new = A01_GLU0_…
Plot confidence interval for linear mixed modelHi, I'm running a linear mixed model, and am now trying to plot a fitted line with a 95% CI for thi…
Lags in time series with only trading daysHello together, for my thesis I have a dataset which contains stock prices over a period of 28 year…
Subscribe to:
Post Comments (Atom)
0 Response to recoding dummy variables
Post a Comment