NormalBlockVarUnknownClusters: Normal-Block-Var Model with Unknown Clustering

NormalBlockVarUnknownClustersR Documentation

Normal-Block-Var Model with Unknown Clustering

Description

R6 class for a normal-block model with a fixed number of clusters (but unknown clustering).

Super classes

NormalBlockBase -> NormalBlockVarBase -> NormalBlockVarUnknownClusters

Active bindings

model_par

the parameters of NormalBlockVarBase (B, B0, dm1, Omega), plus alpha (cluster proportions)

var_par

a list with the matrices of the variational parameters: M (means), S (variances), tau (posterior group probabilities)

Methods

Public methods

Inherited methods

NormalBlockVarUnknownClusters$new()

Create a new NormalBlockVarUnknownClusters object.

Usage
NormalBlockVarUnknownClusters$new(
  data,
  q,
  sparsity = 0,
  control = NB_control()
)
Arguments
data

contains the matrix of responses (Y) and the design matrix (X).

q

required number of groups

sparsity

sparsity penalty to add on blocks precision matrix for sparsity

control

structured list for specific parameters

Returns

A new NormalBlockVarUnknownClusters object


NormalBlockVarUnknownClusters$clone()

The objects of this class are cloneable with this method.

Usage
NormalBlockVarUnknownClusters$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)
model <- normal_block(data, blocks = 3, control = NB_control(verbose = FALSE))
model$clustering

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