Learn R Programming

BioGeoBEARS (version 0.2.1)

calc_AIC_column: Calculate AICs to make a column in a table

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_column(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_col A data.frame column 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.

See Burnham et al. (2002) and http://www.brianomeara.info/tutorials/aic for discussion of AIC and its uses.

References

http://phylo.wikidot.com/matzke-2013-international-biogeography-society-poster http://www.brianomeara.info/tutorials/aic

Burnham_Anderson_2002

Matzke_2012_IBS

See Also

calc_AIC_vals, calc_AICc_vals

Examples

Run this code
test=1

LnL_vals = c(-20.9, -20.9, -20.9, -20.9)
nparam_vals = c(3, 4, 5, 6)
calc_AIC_column(LnL_vals, nparam_vals)

Run the code above in your browser using DataLab