Learn R Programming

PhylogeneticEM (version 1.0.1)

init.compute_betas_from_shifts: Initialisation for the computation of the optimal values

Description

init.compute_betas_from_shifts initialize the vector of optimal values at nodes and tips, with the value at the root.

Usage

init.compute_betas_from_shifts(phy, optimal.value, ...)

Arguments

phy

Input tree.

optimal.value

the optimal value at the root of the tree

Value

Matrix of size (nNodes + ntaxa)x1 of NAs, with the optiaml value at the root.

Details

This function is used in function compute_betas_from_shifts_from_shifts and is designed to furnish function update.compute_betas_from_shifts with the right structure of data.