init.allocate_regimes_from_shifts: Initialization for the allocation of shifts.

View source: R/shifts_manipulations.R

init.allocate_regimes_from_shiftsR Documentation

Initialization for the allocation of shifts.

Description

init.allocate_regimes_from_shifts initialize the vector of regimes at nodes and tips, with the regime (0) at the root.

Usage

init.allocate_regimes_from_shifts(phy, ...)

Arguments

phy

Input tree.

Details

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

Value

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


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