Learn R Programming

phangorn (version 1.0-2)

modelTest: ModelTest

Description

Comparison of different substition models

Usage

modelTest(tree, data, model = c("JC", "F81", "K80", "HKY", "SYM", "GTR"), G = TRUE, I = TRUE, k = 4)

Arguments

tree
a phylogenetic tree.
data
an object of class phyDat
model
substitution models to compare with each other
G
(discrete) Gamma model
I
invariant sites
k
rate classes

Value

  • a data.frame containing the AIC and BIC for the tested models.

References

Posada, D. (2008) jModelTest: Phylogenetic Model Averaging. Molecular Biology and Evolution 25: 1253-1256

See Also

pml, anova

Examples

Run this code
example(NJ)
modelTest(tree, Laurasiatherian)

Run the code above in your browser using DataLab