akaikeic calculates the Akaike Information Criterion (AIC) of a model.
akaikeicc calculates the corrected Akaike Information Criterion
(AICc) for small samples.
Usage
akaikeic(NLL, k)
akaikeicc(NLL, k, n)
Arguments
NLL
Negative Log-Likelihood of the model.
k
Number of parameters of the model.
n
Sample size.
Value
A number with the AIC value for a model with k parameters and
negative log-likelihood NLL, or the AICc value for a model with k parameters,
negative log-likelihood NLL and sample size n.
Details
$$AIC = 2 * k + 2 * NLL$$ $$AICc = 2 * k - 2 * lnL + 2 * k *
(k + 1) / (n - k - 1)$$