Learn R Programming

PhylogeneticEM (version 1.0.0)

get_variance_node: Get variance matrix of a node

Description

get_variance_node returns the conditional variance of a node, or the conditional corariance 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+nNodes) result of funtion compute_E.simple, entry "variances" or "covariances".

Value

sub-matrix of variance for the node.