Learn R Programming

PhylogeneticEM (version 1.0.0)

compute_diff_exp.BM: Compute differences of expectations between node and parent.

Description

compute_diff_exp compute the differences of conditional expectations between all the nodes and their parents.

Usage

compute_diff_exp.BM(phylo, conditional_law_X)

Arguments

phylo
a phylogenetic tree
conditional_law_X
result of function compute_E

Value

matrix p x nEdges containing, for each edge e finishing at node i, the quantity E[Z_i|Y]-E[Z_pa(i)|Y].