I am able to create a linear regression in R using
lmex = lm(overweight$h_egfr_cystc96 ~ overweightlogblood + overweight$sex, data = overweight)
In my data.frame
, sex is labeled as 2 for female and 1 for male. I want to make sure that the sign for the slope for my linear regression is correct.
In other words, if female was 0 and male was 1, the sign of the slope of my regression would be opposite than if female was 2 and male was 1. How do I label my categorical variables in the regression, or is there a better solution?
Thanks in advance!