extract_variance_covariance: Extract sub-matrices of variance.

View source: R/E_step.R

extract_variance_covarianceR Documentation

Extract sub-matrices of variance.

Description

extract_variance_covariance return the adequate sub-matrix.

Usage

extract_variance_covariance(
  struct,
  what = c("YY", "YZ", "ZZ"),
  masque_data = c(rep(TRUE, attr(struct, "ntaxa") * attr(struct, "p_dim")), rep(FALSE,
    (dim(struct)[1] - attr(struct, "ntaxa")) * attr(struct, "p_dim")))
)

Arguments

struct

structural matrix of size (ntaxa+Nnode)*p, result of function compute_variance_covariance

what

sub-matrix to be extracted: "YY" : sub-matrix of tips (p*ntaxa first lines and columns) "YZ" : sub matrix tips x nodes (p*Nnode last rows and p*ntaxa first columns) "ZZ" : sub matrix of nodes (p*Nnode last rows and columns)

masque_data

Mask of missing data

Value

sub-matrix of variance covariance.


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