Negative Binomial Deviance Residual
Y : array-like
Y is the response variable
mu : array-like
mu is the fitted value of the model
scale : float, optional
An optional argument to divide the residuals by scale
resid_dev : array
The array of deviance residuals
Notes
resid_dev = sign(Y-mu) * sqrt(piecewise)
where piecewise is defined as if :
if :
statsmodels.genmod.families.family.NegativeBinomial.resid_anscombe
statsmodels.genmod.families.family.NegativeBinomial.starting_mu
Enter search terms or a module, class or function name.