statsmodels.genmod.families.family.Poisson.resid_anscombe

Poisson.resid_anscombe(endog, mu)[source]

Anscombe residuals for the Poisson exponential family distribution

Parameters:

endog : array-like

Endogenous response variable

mu : array-like

Fitted mean response variable

Returns:

resid_anscombe : array

The Anscome residuals for the Poisson family defined below

Notes

resid\_anscombe_i = (3/2) * (Y_i^{2/3} - \mu_i^{2/3}) / \mu_i^{1/6}