sigma.NormalBlockBase: Extract the Covariance Matrix

View source: R/NormalBlockBase-S3methods.R

sigma.NormalBlockBaseR Documentation

Extract the Covariance Matrix

Description

Extract the covariance matrix Omega^-1. For the variance-block models, the q x q covariance of the latent block signals, on the scale of the fit (it has no original-scale counterpart when the variables of a block were rescaled by different factors). For the mean-block models, the p x p residual covariance between variables, on the original scale of Y.

Usage

## S3 method for class 'NormalBlockBase'
sigma(object, ...)

Arguments

object

An object of class NormalBlockBase.

...

not used, only here for S3 compatibility

Value

The covariance matrix, of size q x q or p x p depending on the model.

Examples

ex_data <- generate_normal_block_var_data(n = 50, p = 20, d = 1, q = 3)
data <- NormalBlockData$new(ex_data$Y, ex_data$X)
model <- normal_block(data, blocks = 3, control = NB_control(verbose = FALSE))
sigma(model)

normalblockr documentation built on Nov. 24, 2026, 1:06 a.m.