Learn R Programming

PhylogeneticEM (version 1.0.0)

transform_branch_length: 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.