AkaikeWeights_on_summary_table: Calculate Akaike Weights, and add to table

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

View source: R/BioGeoBEARS_generics_v1.R

Description

This calculates Akaike Weights (relative probabilities on models explaining the same data) for the models in a column in a table.

Usage

1
2
  AkaikeWeights_on_summary_table(restable,
    colname_to_use = "AIC", add_to_table = TRUE)

Arguments

restable

A data.frame with at least a column named as in add_to_table.

colname_to_use

The name of the column containing AIC values.

add_to_table

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

Value

restable, the modified table, or wt_vBest, the Akaike Weights results.

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

Matzke_2012_IBS

Burnham_Anderson_2002

See Also

calc_AIC_column, calc_AICc_column

Examples

1
test=1

Example output

Loading required package: rexpokit
Loading required package: SparseM

Attaching package: 'SparseM'

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

    backsolve

Loading required package: Rcpp
Loading required package: cladoRcpp
Loading required package: ape
Loading required package: phylobase

Attaching package: 'phylobase'

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

    edges

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