I\'m running a logistic regression with a categorical predictor variable with levels 0-6. By default, R considers level 0 as the reference group.
How can I tell R to
Use the C function to define your contrasts in the dataframe.
C
If your dataframe is DF and the factor variable is fct, then
DF
fct
DF$fct <- C(DF$fct, contr.treatment, base=3)
(untested).