statsmodels.discrete.discrete_model.BinaryResults.resid_dev
-
static BinaryResults.resid_dev()[source] -
Deviance residuals
Notes
Deviance residuals are defined
![d_j = \pm\left(2\left[Y_j\ln\left(\frac{Y_j}{M_jp_j}\right) + (M_j - Y_j\ln\left(\frac{M_j-Y_j}{M_j(1-p_j)} \right) \right] \right)^{1/2}](http://statsmodels.sourceforge.net/stable/_images/math/657f580931f962da0d42ffdd280d2a1c964ef941.png)
where
and
is the total number of observations sharing the covariate pattern
.For now
is always set to 1.
Please login to continue.