ZINormalBlockMeanUnknownClusters: Zero-Inflated Normal-Block-Mean Model with Unknown Clustering

ZINormalBlockMeanUnknownClustersR Documentation

Zero-Inflated Normal-Block-Mean Model with Unknown Clustering

Description

R6 class for a zero-inflated Normal-Block-Mean model with a fixed number of clusters (but unknown clustering), inferred by variational EM. Sigma is diagonal or spherical here. See NormalBlockMeanBase for why a full one is out of reach under a mask.

Super classes

NormalBlockBase -> NormalBlockMeanBase -> ZINormalBlockMeanUnknownClusters

Active bindings

var_par

a list with the variational parameter: tau (posterior group probabilities)

model_par

the parameters of NormalBlockMeanBase (B, Omega), plus B0 (zero-inflation coefficients), kappa (zero-inflation probabilities) and alpha (cluster proportions)

Methods

Public methods

Inherited methods

ZINormalBlockMeanUnknownClusters$new()

Create a new ZINormalBlockMeanUnknownClusters object.

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

object of NormalBlockData class, with responses and design matrix

q

number of clusters

sparsity

unused here, kept for signature symmetry (must be 0)

control

structured list of more specific parameters, to generate with NB_control

Returns

A new ZINormalBlockMeanUnknownClusters object


ZINormalBlockMeanUnknownClusters$clone()

The objects of this class are cloneable with this method.

Usage
ZINormalBlockMeanUnknownClusters$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.

Examples

ex <- generate_normal_block_mean_data(n = 50, p = 20, d = 1, q = 3)
Y <- ex$Y; Y[runif(length(Y)) < 0.2] <- 0
data <- NormalBlockData$new(Y, ex$X)
model <- normal_block(data, blocks = 3, model = "mean", zero_inflation = TRUE)
model$clustering

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