7.2.3.3.1.6. statsmodels.genmod.families.family.Family.resid_dev¶
-
Family.
resid_dev
(endog, mu, scale=1.0)[source]¶ The deviance residuals
Parameters: endog : array
The endogenous response variable
mu : array
The inverse of the link function at the linear predicted values.
scale : float, optional
An optional argument to divide the residuals by scale
Returns: Deviance residuals.
Notes
The deviance residuals are defined for each family.