rateHistory function

Computing historical rates

Computing historical rates

The function calculates historical rates for each tip of the tree. Historical rates represent the sum of rates along subsequent branches of a lineage. The product of these rates multiplied by the relative branch lengths represents the phenotypic transformation from one node to the next one along the path. The function also provides the sum of rate modulus along lineages. This represents the total amount of evolutionary change per lineage.

rateHistory(RR)

Arguments

  • RR: an object fitted by the function RRphylo.

Returns

The function returns the vector of net historical rates ($rateHistory$net.rate) and the sum of rate modulus for each tip ($rateHistory$norm.rate), and the matrix of phenotypic changes from one node to the next along each lineage (phen.path).

Examples

## Not run: data("DataCetaceans") DataCetaceans$treecet->treecet DataCetaceans$masscet->masscet cc<- 2/parallel::detectCores() RRphylo(tree=treecet,y=masscet,clus=cc)->RRcet rateHistory(RR=RRcet)->rh ## End(Not run)

Author(s)

Pasquale Raia, Silvia Castiglione

  • Maintainer: Silvia Castiglione
  • License: GPL-2
  • Last published: 2025-03-23

Useful links