AkaikeWeights_and_Ratios_pairwise_on_summary_table_compared_to_ref: Get the ratio between the pairwise Akaike Weights

Description Usage Arguments Details Value Note Author(s) References See Also Examples

Description

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

Usage

1
2
3
  AkaikeWeights_and_Ratios_pairwise_on_summary_table_compared_to_ref(restable,
    colname_to_use = "AIC", ref_model = "best",
    add_to_table = TRUE)

Arguments

restable

A data.frame with at least columns named "LnL" and "nparams".

colname_to_use

The name of the column containing AIC values.

ref_model

What is the row of the reference model? "best", "worst", or a row number.

add_to_table

If TRUE, add to the main table and return the main table. If FALSE, return just the Akaike Weights results.

Details

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

Value

restable, the modified table, or AICstats_pairwise, the pairwise Akaike statistics.

Note

Go BEARS!

Author(s)

Nicholas J. Matzke matzke@berkeley.edu

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_pairwise, get_Akaike_weights_from_rel_likes, rel_likes_from_deltaAICs, getAIC

Examples

1
2
3
4
5
6
test=1

tmptable = adf(c(40, 50, 60))
names(tmptable) = "AIC"
AkaikeWeights_and_Ratios_pairwise_on_summary_table_compared_to_ref(
restable=tmptable, colname_to_use="AIC", ref_model="best", add_to_table=TRUE)

BioGeoBEARS documentation built on May 29, 2017, 8:36 p.m.