statsmodels.genmod.families.family.InverseGaussian.resid_anscombe

InverseGaussian.resid_anscombe(endog, mu, var_weights=1.0, scale=1.0) [source]

The Anscombe residuals

Parameters:
  • endog (array) – The endogenous response variable
  • mu (array) – The inverse of the link function at the linear predicted values.
  • var_weights (array-like) – 1d array of variance (analytic) weights. The default is 1.
  • scale (float, optional) – An optional argument to divide the residuals by sqrt(scale). The default is 1.
Returns:

resid_anscombe – The Anscombe residuals for the inverse Gaussian distribution as defined below

Return type:

array

Notes

\[resid\_anscombe_i = \log(Y_i / \mu_i) / \sqrt{\mu_i * scale} * \sqrt(var\_weights)\]

© 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.InverseGaussian.resid_anscombe.html