Join us for
RADAR: AI Edition

BioGeoBEARS (version 0.2.1)

get_deltaAIC_pairwise_w_ref_model: Calculate deltaAIC

Description

Calculate deltaAIC (Akaike Information Criterion), the absolute difference between the best model (lowest AIC) and other models. This function does it pairwise only, with a reference model.

Usage

get_deltaAIC_pairwise_w_ref_model(AICvals, ref_model = "best")

Arguments

AICvals
A vector of AIC values.
ref_model
What is the row of the reference model? "best", "worst", or a row number.

Value

deltaAICs_pairwise A 2-column data.frame of pairwise deltaAICs for each row (column 1) and the reference model (column 2).

Details

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

get_deltaAIC, rel_likes_from_deltaAICs, getAIC

Examples

Run this code
test=1

AICvals = c(40, 50, 60)
get_deltaAIC(AICvals)
get_deltaAIC_pairwise_w_ref_model(AICvals, ref_model="best")

Run the code above in your browser using DataLab