Learn R Programming

PhylogeneticEM (version 1.8.0)

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

Value

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

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.