transform_shifts_values: Transform the shift values

View source: R/parsimonyNumber.R

transform_shifts_valuesR Documentation

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 equivalent 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)


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