get_variance_node: Get variance matrix of a node

View source: R/E_step.R

get_variance_nodeR Documentation

Get variance matrix of a node

Description

get_variance_node returns the conditional variance of a node, or the conditional covariance of a node and its parent.

Usage

get_variance_node(node, vars)

Arguments

node

for which to extract the matrix.

vars

matrix of size p x p*(ntaxa+Nnode) result of function compute_E.simple, entry "variances" or "covariances".

Value

sub-matrix of variance for the node.


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