Changing reference group for categorical predictor variable in logistic regression

后端 未结 4 2015
轻奢々
轻奢々 2020-12-30 07:31

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

4条回答
  •  臣服心动
    2020-12-30 07:45

    The C function has already been suggested, also look at contrasts, relevel, and reorder, among others.

提交回复
热议问题