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.

Version: 1.0.0
Depends: R (≥ 4.1.0)
Imports: Matrix, purrr, R6, ggplot2, igraph, sbm, corrplot, MASS, stats, Rcpp
LinkingTo: Rcpp, RcppArmadillo
Suggests: testthat (≥ 3.0.0), aricode, covr, rmarkdown, pheatmap, paletteer, ggthemes, knitr
Published: 2026-11-23
DOI: 10.32614/CRAN.package.normalblockr
Author: Jeanne Tous [aut], Julien Chiquet ORCID iD [aut, cre], Nestor Ngalala Manguitini [aut]
Maintainer: Julien Chiquet <julien.chiquet at inrae.fr>
BugReports: https://github.com/jchiquet/normalblockr/issues
License: GPL (≥ 3)
URL: https://github.com/jchiquet/normalblockr, https://jchiquet.github.io/normalblockr/
NeedsCompilation: yes
Citation: normalblockr citation info
Materials: README, NEWS
CRAN checks: normalblockr results

Documentation:

Reference manual: normalblockr.html , normalblockr.pdf
Vignettes: Normal-Block models: clustering variables by their covariance — a worked example with breast cancer proteomics data (source, R code)
Mean-Block models: clustering variables by their response to covariates (source, R code)
Analyzing multivariate Gaussian data with the Normal-Block model (variance clustering) - First steps (source, R code)
Zero-inflated Normal-Block models (variance clustering): a worked example with fish biomass data (source, R code)

Downloads:

Package source: normalblockr_1.0.0.tar.gz
Windows binaries: r-devel: normalblockr_0.3.0.zip, r-release: normalblockr_0.3.0.zip, r-oldrel: normalblockr_0.3.0.zip
macOS binaries: r-release (arm64): normalblockr_0.3.0.tgz, r-oldrel (arm64): normalblockr_0.3.0.tgz, r-release (x86_64): normalblockr_1.0.0.tgz, r-oldrel (x86_64): normalblockr_1.0.0.tgz
Old sources: normalblockr archive

Linking:

Please use the canonical form https://CRAN.R-project.org/package=normalblockr to link to this page.