transform_branch_length: Transform branch length for a re-scaled BM

View source: R/generic_functions.R

transform_branch_lengthR Documentation

Transform branch length for a re-scaled BM

Description

Re-scale the branch length of the tree so that a BM running on the new tree produces the same observations at the tips than an OU with parameter alpha.

Usage

transform_branch_length(phylo, alp)

Arguments

phylo

A phylogenetic tree of class phylo, with branch lengths.

alp

Value of the selection strength.

Value

phylo The same phylogenetic tree, with transformed branch lengths.


PhylogeneticEM documentation built on June 22, 2024, 6:46 p.m.