Learn R Programming

PhylogeneticEM (version 1.0.0)

matrix_of_possibles: Compute parent matrix from possibles daughter matrices.

Description

matrix_of_possibles is used in function update.enumerate_parsimony to compute, from the list of possible matrices for the daughters, the matrix for the node (a group for the parent being fixed).

Usage

matrix_of_possibles(matrices)

Arguments

matrices
a list of matrices with ndaughters entries.

Value

Matrix of all possible regimes fot the subtree bellow node parent.

Details

This function select all possible combinations of rows from all the daughters, and merge then into one using function merge_complementary_vectors.