Bergm.ws: Bayesian Multi-Layer ERGMs for Weighted and Signed Weighted Networks

Bayesian hierarchical multi-layer dissolution exponential random graph models for weighted and signed weighted networks. A weighted network is decomposed into nested binary layers by thresholding its edge weights, and each transition between consecutive layers is modelled conditionally on the observed lower layers: on the layers alone with bergm_w(), or jointly with the edge signs with bergm_ws(). Layer-specific parameters are partially pooled through a Normal-inverse-Wishart hierarchical prior and estimated with an adaptive approximate exchange algorithm: joint or layer-wise updates, delayed acceptance with a Gaussian approximation of the likelihood, the hierarchical mean integrated out of the exchange step, and a proposal covariance initialised from the Fisher information, learned during the burn-in and pooled across chains. The package also provides a model builder that checks that every statistic is computed on its own layer, prior and posterior predictive checks with goodness-of-fit statistics not used in the model, convergence diagnostics and a check of the length of the auxiliary chains.

Version: 0.1.0
Depends: R (≥ 4.1.0)
Imports: ergm (≥ 4.6.0), ergm.multi (≥ 0.2.0), network, coda, stats, parallel
Suggests: knitr, quarto
Published: 2026-11-26
DOI: 10.32614/CRAN.package.Bergm.ws (may not be active yet)
Author: Alberto Caimo ORCID iD [aut, cre], Isabella Gollini ORCID iD [aut]
Maintainer: Alberto Caimo <alberto.caimo1 at ucd.ie>
License: GPL-3
NeedsCompilation: no
Materials: README, NEWS
CRAN checks: Bergm.ws results

Documentation:

Reference manual: Bergm.ws.html , Bergm.ws.pdf

Downloads:

Package source: Bergm.ws_0.1.0.tar.gz
Windows binaries: r-devel: not available, r-release: not available, r-oldrel: not available
macOS binaries: r-release (arm64): Bergm.ws_0.1.0.tgz, r-oldrel (arm64): not available, r-release (x86_64): not available, r-oldrel (x86_64): not available

Linking:

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