InseadDataAnalytics / INSEADAnalytics

Other
122 stars 1.31k forks source link

Warning Messages #132

Open bigSwingingDuck opened 6 years ago

bigSwingingDuck commented 6 years ago

I got below warning messages after I run stepWise function. What do they indicate?

Warning messages: 1: glm.fit: fitted probabilities numerically 0 or 1 occurred 2: glm.fit: fitted probabilities numerically 0 or 1 occurred 3: glm.fit: fitted probabilities numerically 0 or 1 occurred 4: glm.fit: fitted probabilities numerically 0 or 1 occurred 5: glm.fit: fitted probabilities numerically 0 or 1 occurred 6: glm.fit: fitted probabilities numerically 0 or 1 occurred

carlocelis commented 6 years ago

We got these also. Based on https://discuss.analyticsvidhya.com/t/glm-fit-fitted-probabilities-numerically-0-or-1-occurred-warning-message-when-i-run-logistic-regression/10390/3

"If you feel that in the problem that you are dealing with can have such possibilities, it is advisable to leave this as it is and ignore the warning."

Based on this, the warning message is not necessarily negative and can even be valid based on your data set. So in our case, we ignored the warning