Question: > # Fit the logistic regression model > model
> # Fit the logistic regression model > model <- glm(y ~ treat + center, data = infection_data, family = binomial) Error in `contrasts<-`(`*tmp*`, value = contr.funs[1 + isOF[nn]]) : contrasts can be applied only to factors with 2 or more level
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
