GLM modeling won't converge

I'm getting the following error after running this code chunk below for a glm model:

glm.fit: algorithm did not converge glm.fit: fitted probabilities numerically 0 or 1 occurred.

is.factor(df$Direction)
df$Direction[1:10]
df$Direction <- as.factor(df$Direction)
levels(df$Direction)
glm.fits1=glm(Direction~.,data=df,family=binomial)
summary(glm.fits1) 

So, the problem is that you cannot use the ~. to put in all the predictors in a glm, apparently. Problem solved for now.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.