Learn R Programming

BioGeoBEARS (version 0.2.1)

get_Akaike_weights_from_rel_likes_pairwise: Calculate the Akaike Weights, from the relative likelihoods of the models

Description

Given the relative likelihoods of the models, calculate the Akaike weight of the models. Akaike weights sum to 1.

Usage

get_Akaike_weights_from_rel_likes_pairwise(rel_likes_AIC_pairwise)

Arguments

rel_likes_AIC_pairwise
A 2-column data.frame of relative likelihoods of each pair of models.

Value

Akaike_weights_pairwise A data.frame of Akaike Weights for each row (column 1) and the reference model (column 2). Note that only 2 models are being compared in each row, not all of them, as in get_Akaike_weights_from_rel_likes.

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_Akaike_weights_from_rel_likes, rel_likes_from_deltaAICs, getAIC

Examples

Run this code
test=1

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

rel_likes_AIC_pairwise = rel_likes_from_deltaAICs_pairwise(deltaAICs)
rel_likes_AIC_pairwise

Akaike_weights_pairwise = get_Akaike_weights_from_rel_likes_pairwise(rel_likes_AIC_pairwise)
Akaike_weights_pairwise

Run the code above in your browser using DataLab