statsmodels.genmod.families.family.Family.resid_dev¶
-
Family.
resid_dev
(endog, mu, freq_weights=1.0, 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.
freq_weights : array-like
1d array of frequency weights. The default is 1.
scale : float, optional
An optional argument to divide the residuals by scale. The default is 1.
Returns: Deviance residuals.
Notes
The deviance residuals are defined for each family.