A function calculating Akaike's Information Criterion (AIC) based on the log-likelihood
value extracted from logLik.cmp, according to the formula
-2\*log-likelihood + k\*npar, where npar represents the number of parameters
in the fitted model, and k=2 for the usual AIC or k=log(n) (n being
the number of observations) for the so-called BIC (Bayesian Information Criterion).
Usage
# S3 method for class 'cmp'
AIC(object, ..., k = 2)Details
When comparing models fitted by maximum likelihood to the same data, the smaller the AIC or BIC, the better the fit.