statsmodels.genmod.families.family.Gamma.resid_dev¶
-
Gamma.resid_dev(endog, mu, var_weights=
1.0, scale=1.0)¶ The deviance residuals
Notes
The deviance residuals are defined by the contribution D_i of observation i to the deviance as
\[resid\_dev_i = sign(y_i-\mu_i) \sqrt{D_i}\]D_i is calculated from the _resid_dev method in each family. Distribution-specific documentation of the calculation is available there.