Unlimited learning, half price | 50% off

Last chance! 50% off unlimited learning

Sale ends in


phytools (version 0.1-0)

phyloDesign: Compute design matrix for least squares analyses

Description

Primarily an internal function for optim.phylo.ls, thisi function creates a design matrix for least squares phylogenetic analysis.

Usage

phyloDesign(tree)

Arguments

tree
phylogenetic tree.

Value

  • a matrix.

Details

This function returns a matrix containing the edges in the tree (in columns) and pairs of tip node numbers (in rows). Values in the matrix are either 1 if the edge is on the shortest path between the two tips; and 0 otherwise. Probably do not use unless you know what you're doing.