Kcalc function

K statistic of phylogenetic signal

K statistic of phylogenetic signal

Calculates K statistic of phylogenetic signal

Kcalc(x, phy, checkdata=TRUE)

Arguments

  • x: Vector or data.frame of trait data (in phylo$tip.label order)
  • phy: phylo object
  • checkdata: Check for match between trait and phylogeny taxa labels using match.phylo.data? (default=TRUE)

Returns

  • K: K statistic

References

Blomberg, S. P., and T. Garland, Jr. 2002. Tempo and mode in evolution: phylogenetic inertia, adaptation and comparative methods. Journal of Evolutionary Biology 15:899-910.

Blomberg, S. P., T. Garland, Jr., and A. R. Ives. 2003. Testing for phylogenetic signal in comparative data: behavioral traits are more labile. Evolution 57:717-745.

Author(s)

Simon Blomberg s.blomberg1@uq.edu.au and David Ackerly dackerly@berkeley.edu

See Also

phylosignal

Examples

randtree <- rcoal(20) randtraits <- rTraitCont(randtree) Kcalc(randtraits[randtree$tip.label],randtree)
  • Maintainer: Steven W. Kembel
  • License: GPL-2
  • Last published: 2020-06-10

Useful links