Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

phyl.vcv

Compute evolutionary VCV matrix for a tree & dataset


Description

Primarily an internal function for phyl.pca; this can be used to compute the phylogenetic trait variance-covariance matrix given a phylogenetic VCV, λ, and a data matrix.

This function should not be confused with vcv.phylo in the ape package (although one of the objects returned is the output of vcv.phylo).

Usage

phyl.vcv(X, C, lambda)

Arguments

lambda

value for λ transformation.

X

data matrix.

C

matrix containing the height above the root of each pair of species in the tree. Typically this will have been produced by calling vcv.phylo.

Value

A list containing three elements, as follows: C, the matrix vcv.phylo transformed by lambda; R, the among trait variance-covariance matrix for the data in X; and alpha, a vector of ancestral states at the root node of the tree.

Author(s)

References

Revell, L. J. (2012) phytools: An R package for phylogenetic comparative biology (and other things). Methods Ecol. Evol., 3, 217-223.


phytools

Phylogenetic Tools for Comparative Biology (and Other Things)

v0.7-70
GPL (>= 2)
Authors
Liam J. Revell
Initial release
2020-9-19

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.