get_deltaAIC_pairwise_w_ref_model: Calculate deltaAIC

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

View source: R/BioGeoBEARS_generics_v1.R

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

1
2
  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.

Details

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

Value

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

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

Examples

1
2
3
4
5
test=1

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

Example output

Loading required package: rexpokit
Loading required package: cladoRcpp
Loading required package: ape
Loading required package: phylobase

Attaching package: 'phylobase'

The following object is masked from 'package:ape':

    edges

[1]  0 10 20
  deltaAIC_row deltaAIC_ref
1            0            0
2           10            0
3           20            0

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