[R] SOS! error in GLM logistic regression...

Michael comtech.usa at gmail.com
Wed Jul 15 00:57:38 CEST 2009


Hi all,

Could anybody tell me what happened to my logistic regression in R?
mylog=glm(mytraindata$V1 ~ ., data=mytraindata, family=binomial("logit"))

It generated the following error message:

Error in model.frame.default(Terms, newdata, na.action = na.action,
xlev = object$xlevels) :
  factor 'state1' has new level(s) AP

Thank you!




More information about the R-help mailing list