I just realized that mwin had three levels. I went ahead and deleted one of them.
summary(mwin) table(mwin) mwin = factor(mwin) levels(mwin) mwin = mwin mwin[mwin %in% levels(mwin)[1]] <- NA mwin = factor(mwin) levels(mwin) mwin = factor(mwin, levels=c("DECLINED","ACCEPTED")) On Thu, Dec 22, 2011 at 8:23 AM, Abraham Mathew <abmathe...@gmail.com>wrote: > > I'm working on a logistic regression in R with the car package but keep > getting the following error message. > It's only and warning and not an error, but I'm just not sure how to > resolve the issues. > > glm.fit: algorithm did not converge > > glm.fit: fitted probabilities numerically 0 or 1 occurred > > > d1 = data.frame(mwin=c(mwin), mbid=c(mbid)) > m1 = zelig(mwin ~ mbid, data=d1, model="logit") > summary(m1) > plot(mwin ~ mbid) > > > > str(d1)'data.frame': 66514 obs. of 2 variables: > $ mwin: Factor w/ 3 levels "","ACCEPTED",..: 2 2 2 2 2 2 2 2 2 2 ... > $ mbid: int 700 300 700 300 500 300 300 700 300 300 ... > > > > Can anyone tell me what I should do to fix the warnings. > > > -- > *Abraham Mathew > Statistical Analyst > www.amathew.com > 720-648-0108 > @abmathewks* > -- *Abraham Mathew Statistical Analyst www.amathew.com 720-648-0108 @abmathewks* [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.