Family.resid_dev(endog, mu, freq_weights=1.0, scale=1.0)[source]

The deviance residuals


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.


Deviance residuals.


The deviance residuals are defined for each family.