statsmodels.discrete.discrete_model.BinaryResults.resid_dev¶
-
BinaryResults.
resid_dev
¶ Deviance residuals
Notes
Deviance residuals are defined
dj=±(2[Yjln(YjMjpj)+(Mj−Yjln(Mj−YjMj(1−pj))])1/2where
pj=cdf(Xβ) and Mj is the total number of observations sharing the covariate pattern j.
For now Mj is always set to 1.