'The Anscombe residuals for the Gaussian distribution
Parameters
endog : array
Endogenous response variable
mu : array
Fitted mean response variable
scale : float, optional
An optional argument to divide the residuals by sqrt(scale).
The default is 1.
Returns
resid_anscombe : array
The Anscombe residuals for the Gaussian family defined below
Notes
For the Gaussian distribution, Anscombe residuals are the same as
deviance residuals.
.. math::
resid\_anscombe_i = (Y_i - \mu_i) / \sqrt{scale}'

def resid_anscombe(self, endog, mu, scale=1.0):

    return ((endog - mu) / (scale ** 0.5))
