NormalBlockVarCollectionSparsity: Collection of Normal-Block-Var Models over a Sparsity Path

NormalBlockVarCollectionSparsityR Documentation

Collection of Normal-Block-Var Models over a Sparsity Path

Description

R6 class for a collection of normal-block models with a fixed clustering (blocks) and different sparsity levels. The default penalty grid is read off the latent block covariance of a short unpenalized fit.

Super classes

NormalBlockCollection -> NormalBlockCollectionSparsity -> NormalBlockVarCollectionSparsity

Methods

Public methods

Inherited methods

NormalBlockVarCollectionSparsity$clone()

The objects of this class are cloneable with this method.

Usage
NormalBlockVarCollectionSparsity$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.

Examples

ex <- generate_normal_block_var_data(n = 50, p = 20, d = 1, q = 3)
data <- NormalBlockData$new(ex$Y, ex$X)
models <- normal_block(data, blocks = ex$parameters$C, sparsity = TRUE,
                       control = NB_control(verbose = FALSE, n_sparsity_penalties = 5))
models$get_best_model("BIC")$sparsity

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