convert_shifts2regions: Converts shift values to optimum values on the edges.

Description Usage Arguments Value Examples

Description

Converts a model indicated with shift values to a model with optimum values on the edges.

Usage

1
convert_shifts2regions(tree, shift.configuration, shift.values)

Arguments

tree

ultrametric tree of class phylo with branch lengths.

shift.configuration

vector of edge indices with shifts.

shift.values

vector of shift values.

Value

vector of size number of edges with optimum value of the trait on the corresponding edge.

Examples

1
2
3
4
5
6
7
8
data(lizard.tree, lizard.traits)

sc <- c(55, 98, 118, 74, 14, 77,  32, 164)
sv <- c(2 ,  3,   4,  4,  1,  2, 0.5,   1)

root.value <- -2

optimum.values <- convert_shifts2regions(lizard.tree, sc, sv) + root.value

khabbazian/l1ou documentation built on May 20, 2019, 9:21 a.m.