Learn R Programming

phytools (version 0.2-40)

gammatest: Gamma test of Pybus & Harvey (2000)

Description

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

Usage

gammatest(x)

Arguments

x
list from function call of ltt in which ltt(...,gamma=F).

Value

  • a list containing:
  • gammaoptionally, a value for the $\gamma$-statistic.
  • ptwo-tailed P-value for the $\gamma$-test.

Details

Do not use for object returned by ltt(...,gamma=T).

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.

See Also

ltt

Examples

Run this code
tree<-pbtree(n=200)
	z<-ltt(tree,gamma=FALSE)
	g<-gammatest(z)

Run the code above in your browser using DataLab