statsmodels.discrete.discrete_model.LogitResults.resid_generalized

method

LogitResults.resid_generalized()[source]

Generalized residuals

Notes

The generalized residuals for the Logit model are defined

\[y - p\]

where \(p=cdf(X\beta)\). This is the same as the resid_response for the Logit model.