Logo

statsmodels.genmod.families.family.Family.deviance

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

Deviance of (endog,mu) pair.

Deviance is usually defined as twice the loglikelihood ratio.

Parameters:

endog : array-like

The endogenous response variable

mu : array-like

The inverse of the link function at the linear predicted values.

scale : float, optional

An optional scale argument

Returns:

Deviance : array

The value of deviance function defined below.

Notes

Deviance is defined

System Message: WARNING/2 (\sum_i(2 loglike(y_i, y_i) - 2 * loglike(y_i, mu_i)) / scale)

latex exited with error [stdout] This is pdfTeX, Version 3.14159265-2.6-1.40.15 (TeX Live 2014) (preloaded format=latex) restricted \write18 enabled. entering extended mode (./math.tex LaTeX2e <2011/06/27> Babel <3.9k> and hyphenation patterns for 2 languages loaded. (/usr/share/texlive/texmf-dist/tex/latex/base/article.cls Document Class: article 2007/10/19 v1.4h Standard LaTeX document class (/usr/share/texlive/texmf-dist/tex/latex/base/size12.clo)) (/usr/share/texlive/texmf-dist/tex/latex/base/inputenc.sty ! LaTeX Error: File `utf8x.def’ not found. Type X to quit or <RETURN> to proceed, or enter new name. (Default extension: def) Enter file name: ! Emergency stop. <read *> l.131 \endinput ^^M No pages of output. Transcript written on math.log.

where y is the endogenous variable. The deviance functions are analytically defined for each family.

Previous topic

statsmodels.genmod.families.family.Family

Next topic

statsmodels.genmod.families.family.Family.fitted

This Page