create_dmat: Create the normalizing matrix D

View source: R/create_dmat.r

create_dmatR Documentation

Create the normalizing matrix D

Description

This function creates the normalizing matrix D by taking the Cholesky decomposition of the inverse of the phylogenetic variance-covariance matrix. This process is called Cholesky whitening. As far as I know, it requires fewer matrix calculations than some methods that involve singular value decomposition (SVD).

Usage

create_dmat(tree)

Arguments

tree

An object of class phylo

Value

This function returns a D matrix.

Author(s)

Kevin Surya

References

Kessy et al. (2018)


suryakevin/drugcandy documentation built on May 6, 2022, 6:37 p.m.