vcv2phylo

0th

Percentile

Variance-Covariance Matrix to Tree

This function transforms a variance-covariance matrix into a phylogenetic tree.

Keywords
multivariate, manip
Usage
vcv2phylo(mat, tolerance = 1e-7)
Arguments
mat

a square symmetric (positive-definite) matrix.

tolerance

the numeric tolerance used to compare the branch lengths.

Details

The function tests if the matrix is symmetric and positive-definite (i.e., all its eigenvalues positive within the specified tolerance).

Value

an object of class "phylo".

See Also

vcv, corPhyl

Aliases
  • vcv2phylo
Examples
# NOT RUN {
tr <- rtree(10)
V <- vcv(tr) # VCV matrix assuming Brownian motion
z <- vcv2phylo(V)
identical(tr, z) # FALSE
all.equal(tr, z) # TRUE
# }
Documentation reproduced from package ape, version 4.1, License: GPL (>= 2)

Community examples

Looks like there are no examples yet.