Skip to main content
5 of 7
edited tags
kjetil b halvorsen
  • 82.8k
  • 32
  • 201
  • 663

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