LogitResults.resid_dev()

statsmodels.discrete.discrete_model.LogitResults.resid_dev

LogitResults.resid_dev()

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}

where

p_j = cdf(X\beta) and M_j is the total number of observations sharing the covariate pattern j.

For now M_j is always set to 1.

© 2009–2012 Statsmodels Developers
© 2006–2008 Scipy Developers
© 2006 Jonathan E. Taylor
Licensed under the 3-clause BSD License.
http://www.statsmodels.org/stable/generated/statsmodels.discrete.discrete_model.LogitResults.resid_dev.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部