NegativeBinomial.resid_anscombe(endog, mu, var_weights=1.0, scale=1.0)
[source]
The Anscombe residuals
Parameters: |
|
---|---|
Returns: |
resid_anscombe – The Anscombe residuals as defined below. |
Return type: |
array |
Anscombe residuals for Negative Binomial are the same as for Binomial upon setting \(n=-\frac{1}{\alpha}\). Due to the negative value of \(-\alpha*Y\) the representation with the hypergeometric function \(H2F1(x) = hyp2f1(2/3.,1/3.,5/3.,x)\) is advantageous
Note that for the (unregularized) Beta function, one has \(Beta(z,a,b) = z^a/a * H2F1(a,1-b,a+1,z)\)
© 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_anscombe.html