Skip to main content
3 of 7
added 3 characters in body
Nick Cox
  • 59.5k
  • 8
  • 136
  • 212

How to deal with perfect separation in logistic regression?

If you have a variable which perfectly separates zeroes and ones in target variable, R will yield the following "perfect or quasi perfect separation" warning message:

Warning message:
glm.fit: fitted probabilities numerically 0 or 1 occurred 

We still get the model but the coefficient estimates are inflated.

How do you deal with this in practice?

user333
  • 7.3k
  • 20
  • 50
  • 58