标签: r logistic-regression factors
Error in `contrasts<-`(`*tmp*`, value = contr.funs[1 + isOF[nn]]) : contrasts can be applied only to factors with 2 or more levels
我在尝试运行时遇到上述错误
model<- glm(asb_flag ~ ., family=binomial(link='logit'), data=dev)
虽然,我的所有因素都有多个级别。