calc_AIC_vals: Calculate AICs for a list of models
Description
A list of AICs (Akaike Information Criterion) is
calculated from two input lists. Lower values of AIC
indicate some combination of better fit to the data and
more parsimony in the model (fewer free parameters).
Usage
calc_AIC_vals(LnL_vals, nparam_vals)
Arguments
LnL_vals
A vector of log-likelihoods (typically
negative, but may not be for continuous data).
nparam_vals
A vector of the number of parameters
for each model.
Value
AIC_vals A vector of AIC results.
Details
The two input lists are:
1. A list of data likelihoods under a variety of
models. 2. A list of the number of free
parameters under each model.