Learn R Programming

PhylogeneticEM (version 1.0.0)

transform_shifts_values: Transform the shift values

Description

transform_shifts_values takes the shifts generating a given expectation structure given an OU with alpha = from, and gives back the equivelent shifts values that produce the same structure with an OU with alpha = to. If from or to is 0, then the process is supposed to be a BM.

Usage

transform_shifts_values(shifts, from = 0, to, phylo)

Arguments

shifts
the shifts on the original process
from
alpha value of the original process. If equals 0, then the original process is taken to be a BM.
to
alpha value of the destination process
phylo
the phylogenetic tree (un-scaled)