R: Computation of the optimal values at nodes and tips.

compute_betas_from_shifts {PhylogeneticEM} | R Documentation

## Computation of the optimal values at nodes and tips.

### Description

`compute_betas_from_shifts` computes the optimal values at the nodes and tips of the tree, given the value at the root and the list of shifts occurring in the tree. It assumes an OU model.

### Usage

    compute_betas_from_shifts(phylo, optimal.value, shifts)

### Arguments

`phylo` | a phylogenetic tree, class `phylo`.
`optimal.value` | the optimal value at the root of the tree.
`shifts` | position and values of the shifts .

### Value

Vector of size (ntaxa + nNodes) of the optimal values at the tips of the tree.

[Package PhylogeneticEM version 1.1.0 Index]