Poisson.resid_dev()

statsmodels.genmod.families.family.Poisson.resid_dev

Poisson.resid_dev(endog, mu, scale=1.0) [source]

Poisson deviance residual

Parameters:

endog : array-like

Endogenous response variable

mu : array-like

Fitted mean response variable

scale : float, optional

An optional argument to divide the residuals by scale

Returns:

resid_dev : array

Deviance residuals as defined below

Notes

resid_dev = sign(endog-mu)*sqrt(2*endog*log(endog/mu)-2*(endog-mu))

doc_statsmodels
2017-01-18 16:13:55
Comments
Leave a Comment

Please login to continue.