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.


pbastide/PhylogeneticEM documentation built on Feb. 12, 2024, 1:27 a.m.