statsmodels.genmod.families.family.Binomial.resid_anscombe
Binomial.resid_anscombe(endog, mu) [source]
The Anscombe residuals Parameters:
endog : array-like Endogenous response variable mu : array-like Fitted mean response variable Returns:
resid_anscombe : array The Anscombe residuals as defined below. Notes sqrt(n)*(cox_snell(endog)-cox_snell(mu))/(mu**(1/6.)*(1-mu)**(1/6.)) where cox_snell is defined as cox_snell(x) = betainc(2/3., 2/3., x)*betainc(2/3.,2/3.) where betainc is th