init.incidence.matrix: Initialization for incidence matrix

View source: R/shifts_manipulations.R

init.incidence.matrixR Documentation

Initialization for incidence matrix

Description

init.incidence.matrix initialize the matrix updated in update.incidence.matrix for the computation of the incidence matrix in incidence.matrix.

Usage

init.incidence.matrix(phy)

Arguments

phy

Input tree.

Details

The initialized matrix has ntaxa column and Nnode rows. Each node represent its parental branch. A row corresponding to a tip i is initialized to a vector of zeros, with only entry i equal to one. (Branch ending at tip i is only in the i^th lineage)

Value

Matrix with Nnode rows and ntaxa column.


PhylogeneticEM documentation built on Aug. 31, 2022, 9:16 a.m.