Learn R Programming

PhylogeneticEM (version 1.0.0)

init.allocate_regimes_from_shifts: Initialisation 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.

Value

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

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.