Learn R Programming

phytools (version 2.1-1)

gammatest: Gamma test of Pybus & Harvey (2000)

Description

Conducts \(\gamma\)-test of Pybus & Harvey (2000).

Usage

gammatest(x)

Value

A an object of class "gammatest" consisting of a list that contains:

gamma

a value for the \(\gamma\)-statistic.

p

two-tailed P-value for the \(\gamma\)-test.

Arguments

x

an object of class "ltt" resulting from a call of the function ltt.

Author

Liam Revell liam.revell@umb.edu

References

Pybus, O. G., and P. H. Harvey (2000) Testing macro-evolutionary models using incomplete molecular phylogenies. Proc. R. Soc. Lond. B, 267, 2267-2272.

Revell, L. J. (2024) phytools 2.0: an updated R ecosystem for phylogenetic comparative methods (and other things). PeerJ, 12, e16505.

See Also

ltt, mccr

Examples

Run this code
data(darter.tree)
gammatest(ltt(darter.tree,plot=FALSE))

Run the code above in your browser using DataLab