Learn R Programming

PhylogeneticEM (version 1.8.0)

update.allocate_regimes_from_shifts: Update function for regime allocation.

Description

update.allocate_regimes_from_shifts computes the regime of a daughter node, knowing the regime at the parent node and the vector of shifts positions

Usage

update.allocate_regimes_from_shifts(edgeNbr, ancestral, shifts_edges, ...)

Value

regime of the daughter node.

Arguments

edgeNbr

: Number of the edge considered

ancestral

: regime of the parent node

shifts_edges

positions on edges

Details

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