vcv2 function

Create phylogenetic var-cov matrix

Create phylogenetic var-cov matrix

This function will convert a phylogeny to a Var-cov matrix.

vcv2(phy, corr = FALSE)

Arguments

  • phy: A phylogeny with "phylo" as class.
  • corr: Whether to return a correlation matrix instead of Var-cov matrix. Default is FALSE.

Returns

A phylogenetic var-cov matrix.