ratematrix | R Documentation |
estimating the evolutionary or phylogenetic variance-covariance matrix
ratematrix(phy, dat)
phy |
a phylogenetic tree of class 'phylo' |
dat |
a named vector or matrix of continuous trait values, associated with species in |
If given dat
for n
quantitative variables, this function returns the estimated evolutionary variance-covariance matrix of the variables under a multivariate Brownian motion model. Note that other evolutionary models may be possible if the tree is first transformed (see rescale.phylo
and Examples). If you have n
characters in your analysis, this will be an n
xn
matrix. Diagonal elements represent rate estimates for individual characters, while off-diagonal elements represent the estimated covariance between two characters.
LJ Harmon
Revell, L. J., L. J. Harmon, R. B. Langerhans, and J. J. Kolbe. 2007. A phylogenetic approach to determining the importance of constraint on phenotypic evolution in the neotropical lizard, Anolis cristatellus. Evolutionary Ecology Research 9: 261-282.
geo <- get(data(geospiza))
## EVOLUTIONARY VCV
ratematrix(geo$phy, geo$dat)
## EVOLUTIONARY VCV -- assuming speciational model
kphy <- rescale(geo$phy, "kappa", 0)
ratematrix(kphy, geo$dat)
geo <- get(data(geospiza))
## EVOLUTIONARY VCV
ratematrix(geo$phy, geo$dat)
## EVOLUTIONARY VCV -- assuming speciational model
kphy <- rescale(geo$phy, "kappa", 0)
ratematrix(kphy, geo$dat)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.