Error in `contrasts<-`(`*tmp*`, value = contr.funs[1 + isOF[nn]]) : contrasts can be applied only to factors with 2 or more levels
I keep getting the above error when trying to run
model<- glm(asb_flag ~ ., family=binomial(link='logit'), data=dev)
Although, all of my factors have more than one level.