Learn R Programming

phytools (version 0.7-70)

lambda.transform: \(\lambda\) transformation of matrix

Description

Function multiplies the off-diagonals of a square matrix by \(\lambda\). Used internally in phyl.pca and other functions.

Usage

lambda.transform(lambda, C)

Arguments

lambda

scalar, usually (but not necessarily) on the interval 0,1.

C

matrix probably returned by vcv.phylo.

Value

An among-species phylogenetic variance covariance matrix (e.g., vcv.phylo) in which the off-diagonal elements have been multiplied by \(\lambda\).

References

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