NormalBlockMeanCollectionClustersSparsity: Collection of Normal-Block-Mean Models over Cluster Counts...

NormalBlockMeanCollectionClustersSparsityR Documentation

Collection of Normal-Block-Mean Models over Cluster Counts and Sparsity Levels

Description

R6 class for a collection of mean-block models (NormalBlockMeanBase) over both a range of cluster counts (q) and a sparsity path, i.e. one NormalBlockMeanCollectionSparsity per q. Mirrors NormalBlockVarCollectionClustersSparsity.

Super classes

NormalBlockCollection -> NormalBlockCollectionClustersSparsity -> NormalBlockMeanCollectionClustersSparsity

Methods

Public methods

Inherited methods

NormalBlockMeanCollectionClustersSparsity$clone()

The objects of this class are cloneable with this method.

Usage
NormalBlockMeanCollectionClustersSparsity$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.

Examples

ex <- generate_normal_block_mean_data(n = 60, p = 20, d = 1, q = 3)
data <- NormalBlockData$new(ex$Y, ex$X)
models <- normal_block(data, blocks = 2:4, sparsity = TRUE, model = "mean",
                       control = NB_control(n_sparsity_penalties = 4))
plot(models, criterion = "BIC")
models$get_best_model("BIC")

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