Change reference group using glm with binomial family

后端 未结 2 1749
旧巷少年郎
旧巷少年郎 2021-01-23 06:10

When I run a binomial regression in R with an independed factor variable consisting of three levels \"Higher\" , \"Middle\" and \"Lower\" of which I want to change the referen

2条回答
  •  情书的邮戳
    2021-01-23 06:58

    cbsnivcat3 is an ordered factor, so relevel won't work. What you can do is change it to an ordinary factor:

    cbsnivcat3 <- factor(cbsnivcat3, levels=c("Lower","Middle","Higher"))
    

提交回复
热议问题