sbm: Stochastic Blockmodels

A collection of tools and functions to adjust a variety of stochastic blockmodels (SBM). Supports at the moment Simple, Bipartite, 'Multipartite' and Multiplex SBM (undirected or directed with Bernoulli, Poisson or Gaussian emission laws on the edges). For Simple and Bipartite SBM, covariates can be given on the edges, or on the nodes to drive the block memberships, and the network may contain missing values. See Léger (2016) <doi:10.48550/arXiv.1602.07587>, 'Barbillon et al.' (2020) <doi:10.1111/rssa.12193> and 'Bar-Hen et al.' (2020) <doi:10.48550/arXiv.1807.10138>.

Version: 1.0.0
Depends: R (≥ 3.5.0)
Imports: alluvial, magrittr, dplyr, purrr, blockmodels (≥ 1.2.1), R6, Rcpp, igraph, ggplot2, GREMLINS, rlang, reshape2, prodlim, grDevices
LinkingTo: Rcpp, RcppArmadillo
Suggests: testthat, spelling, knitr, rmarkdown, aricode, pROC, covr, quarto, patchwork
Published: 2026-11-10
DOI: 10.32614/CRAN.package.sbm
Author: Julien Chiquet ORCID iD [aut, cre], Sophie Donnet ORCID iD [aut], Pierre Barbillon ORCID iD [aut], Louis Lacoste [aut], Jean-Benoist Leger [ctb], Julie Aubert ORCID iD [ctb], großBM team [ctb]
Maintainer: Julien Chiquet <julien.chiquet at inrae.fr>
BugReports: https://github.com/GrossSBM/sbm/issues
License: GPL (≥ 3)
URL: https://grosssbm.github.io/sbm/
NeedsCompilation: yes
SystemRequirements: Quarto command line tool (<https://github.com/quarto-dev/quarto-cli>)
Language: en-US
Materials: README, NEWS
In views: GraphicalModels, NetworkAnalysis
CRAN checks: sbm results

Documentation:

Reference manual: sbm.html , sbm.pdf
Vignettes: Multipartite Stochastic Block Models (source, R code)
Stochastic Block Models for Multiplex networks: principle (source, R code)
Stochastic Block Models for Multiplex networks: application (source, R code)
Simple and Bipartite Stochastic Block Models (source, R code)
Stochastic Block Models with covariates on nodes (source, R code)
Stochastic Block Models: principle and illustration (source, R code)

Downloads:

Package source: sbm_1.0.0.tar.gz
Windows binaries: r-devel: sbm_0.4.7.zip, r-release: sbm_0.4.7.zip, r-oldrel: sbm_0.4.7.zip
macOS binaries: r-release (arm64): sbm_0.4.7.tgz, r-oldrel (arm64): sbm_0.4.7.tgz, r-release (x86_64): sbm_0.4.7.tgz, r-oldrel (x86_64): sbm_0.4.7.tgz
Old sources: sbm archive

Reverse dependencies:

Reverse depends: shinySbm
Reverse imports: missSBM, normalblockr

Linking:

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