InformationCriteria.from_likelihood#
- classmethod InformationCriteria.from_likelihood(llf, nobs, n_params)[source]#
Compute all three information criteria from a fit summary.
- Parameters:
- Return type:
- Returns:
The populated
_InformationCriteria.- Raises:
SpecificationError – If
nobs < 3(log(log(n))is undefined or negative below that) orn_paramsis negative.
Example
>>> ic = _InformationCriteria.from_likelihood(-100.0, 200, 3) >>> round(ic.aic, 2) 206.0