Returns the Akaike information criterion of a "MortalityLaw" fit,
2 * k - 2 * logLik, with \(k\) the number of fitted parameters.
Like the log-likelihood it is defined only for the likelihood-based
objectives and is NaN otherwise. Use it to compare candidate laws
fitted to the same data.
Usage
# S3 method for class 'MortalityLaw'
AIC(object, ...)Examples
x <- 45:75
M1 <- MortalityLaw(x = x, Dx = ahmd$Dx[as.character(x), "1950"],
Ex = ahmd$Ex[as.character(x), "1950"],
law = "makeham", opt.method = "poissonL")
AIC(M1)
#> AIC
#> 1156965