powered by
Calculates AIC/AICc values, AIC differences, Likelihood of models, and model probabilities.
aic(logLik, fp, n = NULL)
a list:
list
vector containing AIC/AICc (depending on value of n)
n
vector containing AIC differences from the minimum AIC(c)
vector containing likelihoods for each model, given the data. Represents the relative strength of evidence for each model.
Akaike weights.
A vector of model log-Likelihoods
A vector containing the numbers of free parameters of each model included in the logLik vector
An optional vector of sample sizes for each model. Used to calculate AICc (small sample unbiased AIC).
matthewwolak@gmail.com
Calculations and notation follows chapter 2 of Burnham and Anderson (2002).
Burnham, K.P. and D.R. Anderson. 2002. Model Selection and Multimodel Inference. A Practical Information-Theoretic Approach, 2nd edn. Springer, New York.
aic(c(-3139.076, -3136.784, -3140.879, -3152.432), c(8, 7, 8, 5))
Run the code above in your browser using DataLab