Kcalc: K statistic of phylogenetic signal

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

Description

Calculates K statistic of phylogenetic signal

Usage

1
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)

Value

K

K statistic

Author(s)

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

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.

See Also

phylosignal

Examples

1
2
3
randtree <- rcoal(20)
randtraits <- rTraitCont(randtree)
Kcalc(randtraits[randtree$tip.label],randtree)

Example output

Loading required package: ape
Loading required package: vegan
Loading required package: permute
Loading required package: lattice
This is vegan 2.4-3
Loading required package: nlme
          [,1]
[1,] 0.5740567

picante documentation built on May 2, 2019, 6:30 p.m.