NegativeBinomial.resid_dev()
statsmodels.genmod.families.family.NegativeBinomial.resid_dev
-
NegativeBinomial.resid_dev(endog, mu, scale=1.0)
[source] -
Negative Binomial Deviance Residual
Parameters: endog : array-like
endog
is the response variablemu : array-like
mu
is the fitted value of the modelscale : float, optional
An optional argument to divide the residuals by scale. The default is 1.
Returns: resid_dev : array
The array of deviance residuals
Notes
where is defined as
If :
If :
© 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.genmod.families.family.NegativeBinomial.resid_dev.html