modified.Grafen: Computes modified Grafen edge lengths

View source: R/utilities.R

modified.GrafenR Documentation

Computes modified Grafen edge lengths

Description

Computes modified Grafen (1989) edge lengths.

Usage

modified.Grafen(tree, power=2)
node.paths(tree, node)

Arguments

tree

object of class "phylo".

power

power to raise the depths of each node (in nodes).

node

node number for node.paths.

Details

This function computes modified Grafen edge lengths in which the length of the edge is determined not by the number of descendant leaves, but instead by the maximum number of node lengths in the path from the node to any leaf.

node.paths is used internally by modified.Grafen and computes the set of paths from a node to all tips descended from that node.

Value

An object of class "phylo" with edge lengths.

Author(s)

Liam Revell liam.revell@umb.edu

References

Grafen, A. (1989) The phylogenetic regression. Philosophical Transactions of the Royal Society of London. Series B. Biological Sciences, 326, 119-157.

Revell, L. J. (2024) phytools 2.0: an updated R ecosystem for phylogenetic comparative methods (and other things). PeerJ, 12, e16505.

See Also

compute.brlen


phytools documentation built on June 22, 2024, 10:39 a.m.