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

View source: R/shifts_manipulations.R

init.compute_betas_from_shiftsR Documentation

Initialization 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

Details

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

Value

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


pbastide/PhylogeneticEM documentation built on Feb. 12, 2024, 1:27 a.m.