NegativeBinomial.deviance(endog, mu, var_weights=1.0, freq_weights=1.0, scale=1.0)
The deviance function evaluated at (endog, mu, var_weights, freq_weights, scale) for the distribution.
Deviance is usually defined as twice the loglikelihood ratio.
Parameters: |
|
---|---|
Returns: |
Deviance – The value of deviance function defined below. |
Return type: |
array |
Deviance is defined
where y is the endogenous variable. The deviance functions are analytically defined for each family.
Internally, we calculate deviance as:
© 2009–2012 Statsmodels Developers
© 2006–2008 Scipy Developers
© 2006 Jonathan E. Taylor
Licensed under the 3-clause BSD License.
http://www.statsmodels.org/stable/generated/statsmodels.genmod.families.family.NegativeBinomial.deviance.html