The deviance function evaluated at (endog,mu,freq_weights,mu).
Deviance is usually defined as twice the loglikelihood ratio.
Parameters: | endog : array-like
mu : array-like
freq_weights : array-like
scale : float, optional
|
---|---|
Returns: | Deviance : array
|
Notes
Deviance is defined
D = \sum_i (2 * freq\_weights_i * llf(Y_i, Y_i) - 2 * llf(Y_i, \mu_i)) / scale
where y is the endogenous variable. The deviance functions are analytically defined for each family.