Package: normalblockr 1.0.0

normalblockr: Gaussian Models with Latent Clustering of Variables

Implements two families of Gaussian models with a latent clustering of the variables, for multivariate data whose variables co-vary, or respond to covariates, in groups. In the Normal-Block-Var model, the clusters structure the covariance through latent variables, and a network is inferred between the clusters rather than between the variables, which reduces its dimension and eases its interpretation (Tous and Chiquet (2026) <doi:10.1016/j.csda.2026.108347>). In the Normal-Block-Mean model, the variables of a cluster share the same regression profile, and a network between the variables can be inferred from their residual covariance. In both families, the clustering is either known or inferred, the network can be sparse (graphical lasso), and zero-inflated variants handle data with an excess of zeros. The parameters are estimated by expectation-maximization or variational expectation-maximization algorithms, accelerated by squared extrapolation, and a split and merge procedure improves the fits of a collection of models. The number of clusters, the sparsity of the network and the shape of the covariance are chosen with penalized criteria, cross-validation or stability selection.

Authors:Jeanne Tous [aut], Julien Chiquet [aut, cre], Nestor Ngalala Manguitini [aut]

normalblockr_1.0.0.tar.gz
normalblockr_1.0.0.zip(r-4.7-x86_64)normalblockr_1.0.0.zip(r-4.7-arm64)normalblockr_1.0.0.zip(r-4.6-x86_64)normalblockr_1.0.0.zip(r-4.6-arm64)normalblockr_1.0.0.zip(r-4.5-x86_64)
normalblockr_1.0.0.tgz(r-4.6-x86_64)normalblockr_1.0.0.tgz(r-4.6-arm64)normalblockr_1.0.0.tgz(r-4.5-x86_64)normalblockr_1.0.0.tgz(r-4.5-arm64)
normalblockr_1.0.0.tar.gz(r-4.7-arm64)normalblockr_1.0.0.tar.gz(r-4.7-x86_64)normalblockr_1.0.0.tar.gz(r-4.6-arm64)normalblockr_1.0.0.tar.gz(r-4.6-x86_64)
normalblockr_1.0.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
normalblockr/json (API)

# Install 'normalblockr' in R:
install.packages('normalblockr', repos = c('https://jchiquet.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/jchiquet/normalblockr/issues

Pkgdown/docs site:https://jchiquet.github.io

Uses libs:
  • openblas– Optimized BLAS
  • c++– GNU Standard C++ Library v3
Datasets:
  • brca_rppa - Breast Cancer Proteomics Data
  • onema - French Stream Fish Community Data
  • university - University Webpages Text Data

On CRAN:

Conda:

openblascpp

5.37 score 1 stars 13 scripts 400 downloads 23 exports 60 dependencies

Last updated from:d95b44316d. Checks:15 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-arm64OK162
linux-devel-x86_64OK217
source / vignettesOK332
linux-release-arm64OK165
linux-release-x86_64OK201
macos-release-arm64OK181
macos-release-x86_64OK268
macos-oldrel-arm64OK189
macos-oldrel-x86_64OK234
windows-devel-arm64OK302
windows-devel-x86_64OK218
windows-release-arm64OK289
windows-release-x86_64OK167
windows-oldrel-x86_64OK182
wasm-releaseOK130

Exports:generate_normal_block_mean_datagenerate_normal_block_var_dataget_modelisNBNB_controlnormal_blocknormal_block_cvnormal_block_sequentialNormalBlockDataNormalBlockMeanCollectionClustersNormalBlockMeanCollectionClustersSparsityNormalBlockMeanCollectionSparsityNormalBlockMeanKnownClustersNormalBlockMeanUnknownClustersNormalBlockVarCollectionClustersNormalBlockVarCollectionClustersSparsityNormalBlockVarCollectionSparsityNormalBlockVarKnownClustersNormalBlockVarUnknownClustersZINormalBlockMeanKnownClustersZINormalBlockMeanUnknownClustersZINormalBlockVarKnownClustersZINormalBlockVarUnknownClusters

Dependencies:alluvialaricodeblockmodelsclicodetoolscorrplotcpp11data.tablediagramdigestdplyrfarverfuturefuture.applygenericsggplot2globalsglueGREMLINSgtableigraphisobandKernSmoothlabelinglatticelavalifecyclelistenvmagrittrMASSMatrixnumDerivparallellypbmcapplypillarpkgconfigplyrprodlimprogressrpurrrR6RColorBrewerRcppRcppArmadilloreshape2rlangS7sbmscalesshapeSQUAREMstringistringrsurvivaltibbletidyselectutf8vctrsviridisLitewithr

Mean-Block models: clustering variables by their response to covariates
Preliminaries | Mathematical background | The data | A known clustering | Letting the model infer the clustering | A collection over the number of clusters | Reading the clusters | Choosing the shape of the residual covariance | Sparsifying the residual covariance | References

Last update: 2026-11-23
Started: 2026-09-04

Normal-Block models: clustering variables by their covariance — a worked example with breast cancer proteomics data
Preliminaries | Requirements | Mathematical background | The data | A known clustering of the proteins | Letting the model infer its own clustering | Fitting a collection over a range of cluster counts | Model selection: criteria to fix the number of clusters | Refining the clustering | Sparsifying the network of the selected clustering | References

Last update: 2026-11-23
Started: 2026-06-26

Zero-inflated Normal-Block models (variance clustering): a worked example with fish biomass data
Preliminaries | Mathematical background | The Normal-Block model | Zero-inflation extension | The zero-inflation probabilities $\kappa$ | Requirements | The data | Preparing the data | Fitting a zero-inflated Normal-Block model | Refining the collection | Selecting a model and inspecting the clustering | Inspecting the zero-inflation probabilities | Sparsifying the association network | References

Last update: 2026-11-23
Started: 2026-06-26

Analyzing multivariate Gaussian data with the Normal-Block model (variance clustering) - First steps
Preliminaries | Requirements | Data simulation | Fix simulation parameters | Simulation 1 (no zero-inflation) | Simulation 2 (with zero-inflation) | Prepare the data for a Normal-Block analysis | Run a Normal-Block analysis | With non-zero-inflated data | Fixed clustering | Fixed number of clusters | Unknown number of clusters | Playing with sparsity | With zero-inflated data | References

Last update: 2026-11-20
Started: 2025-11-19

Readme and manuals

Help Manual

Help pageTopics
Bayesian Information Criterion for a Normal-Block ModelBIC.NormalBlockBase
Bayesian Information Criterion for a Collection of Normal-Block ModelsBIC.NormalBlockCollection
Breast Cancer Proteomics Data (TCGA, RPPA)brca_rppa
Extract Model Coefficientscoef.NormalBlockBase
Extract Fitted Valuesfitted.NormalBlockBase
Simulate Data from a Normal-Block-Mean Modelgenerate_normal_block_mean_data
Simulate Data from a Normal-Block-Var Modelgenerate_normal_block_var_data
Create a Normal-Block Model Objectget_model
Check if an Object is a Normal-Block ModelisNB
Extract Log-Likelihood of a Normal-Block ModellogLik.NormalBlockBase
Extract Log-Likelihood of a Collection of Normal-Block ModelslogLik.NormalBlockCollection
Control Parameters for Normal-Block ModelsNB_control
Fit Normal-Block Modelsnormal_block
Cross-Validated Log-Likelihood of Normal-Block Modelsnormal_block_cv
Cluster Variables in the Mean, then in the Residual Covariancenormal_block_sequential
Data Container for Normal-Block ModelsNormalBlockData
Collection of Normal-Block-Mean Models over a Range of Cluster CountsNormalBlockMeanCollectionClusters
Collection of Normal-Block-Mean Models over Cluster Counts and Sparsity LevelsNormalBlockMeanCollectionClustersSparsity
Collection of Normal-Block-Mean Models over a Sparsity PathNormalBlockMeanCollectionSparsity
Normal-Block-Mean Model with Known ClusteringNormalBlockMeanKnownClusters
Normal-Block-Mean Model with Unknown ClusteringNormalBlockMeanUnknownClusters
Collection of Normal-Block-Var Models over a Range of Cluster CountsNormalBlockVarCollectionClusters
Collection of Normal-Block-Var Models over Cluster Counts and Sparsity LevelsNormalBlockVarCollectionClustersSparsity
Collection of Normal-Block-Var Models over a Sparsity PathNormalBlockVarCollectionSparsity
Normal-Block-Var Model with Known ClusteringNormalBlockVarKnownClusters
Normal-Block-Var Model with Unknown ClusteringNormalBlockVarUnknownClusters
French Stream Fish Community Data (ONEMA / OFB Electrofishing Surveys)onema
Plot a Cross-Validated Log-Likelihoodplot.normal_block_cv
Plot a Normal-Block Modelplot.NormalBlockBase
Plot a Collection of Normal-Block Modelsplot.NormalBlockCollection
Predict Method for Normal-Block Modelspredict.NormalBlockBase
Print a Cross-Validated Log-Likelihoodprint.normal_block_cv
Print a Sequential Mean-then-Variance Fitprint.normal_block_sequential
Print a Normal-Block Modelprint.NormalBlockBase
Print a Collection of Normal-Block Modelsprint.NormalBlockCollection
Print a Normal-Block Model Summaryprint.summary.NormalBlockBase
Print a Collection Summaryprint.summary.NormalBlockCollection
Extract the Covariance Matrixsigma.NormalBlockBase
Summarize a Normal-Block Modelsummary.NormalBlockBase
Summarize a Collection of Normal-Block Modelssummary.NormalBlockCollection
University Webpages Text Data (CMU "4 Universities" / WebKB)university
Zero-Inflated Normal-Block-Mean Model with Known ClusteringZINormalBlockMeanKnownClusters
Zero-Inflated Normal-Block-Mean Model with Unknown ClusteringZINormalBlockMeanUnknownClusters
Zero-Inflated Normal-Block-Var Model with Known ClusteringZINormalBlockVarKnownClusters
Zero-Inflated Normal-Block-Var Model with Unknown ClusteringZINormalBlockVarUnknownClusters