statsmodels.genmod.families.family.Gaussian.resid_dev¶
-
Gaussian.
resid_dev
(endog, mu, scale=1.0)[source]¶ Gaussian deviance residuals
Parameters: endog : array-like
Endogenous response variable
mu : array-like
Fitted mean response variable
scale : float, optional
An optional argument to divide the residuals by scale
Returns: resid_dev : array
Deviance residuals as defined below
Notes
resid_dev = (endog - mu)/sqrt(variance(mu))