bgms: Bayesian Analysis of Graphical Models

Bayesian estimation and edge selection for graphical models of mixed binary, ordinal, and continuous variables. The variable types determine the model: an ordinal Markov random field for discrete data, a Gaussian graphical model for continuous data, or a mixed Markov random field combining both. Edge inclusion is determined through spike-and-slab priors, yielding posterior inclusion probabilities for each edge. Supports multi-group comparison via 'bgmCompare()', simulation, prediction, and missing data imputation.

Version: 0.2.0.0
Depends: R (≥ 3.5)
Imports: Rcpp (≥ 1.0.7), RcppParallel, Rdpack, S7, methods, lifecycle, graphics, grDevices, parallel, stats, utils
LinkingTo: Rcpp, RcppArmadillo, RcppParallel, dqrng, BH
Suggests: coda, covr, knitr, MASS, qgraph, rmarkdown, testthat (≥ 3.0.0), withr
Published: 2026-08-04
DOI: 10.32614/CRAN.package.bgms
Author: Maarten Marsman ORCID iD [aut, cre], Don van den Bergh ORCID iD [aut], Nikola Sekulovski ORCID iD [ctb], Giuseppe Arena ORCID iD [ctb], Laura Groot [ctb], Gali Geller [ctb]
Maintainer: Maarten Marsman <m.marsman at uva.nl>
BugReports: https://github.com/Bayesian-Graphical-Modelling-Lab/bgms/issues
License: GPL-2 | GPL-3 [expanded from: GPL (≥ 2)]
Copyright: Includes datasets 'ADHD' and 'Boredom', which are licensed under CC-BY 4. See individual data documentation for license and citation.
URL: https://bayesian-graphical-modelling-lab.github.io/bgms/, https://github.com/Bayesian-Graphical-Modelling-Lab/bgms
NeedsCompilation: yes
Citation: bgms citation info
Materials: README, NEWS
In views: Bayesian, Psychometrics
CRAN checks: bgms results

Documentation:

Reference manual: bgms.html , bgms.pdf
Vignettes: Checking your fitted model (source, R code)
Model Comparison with bgmCompare (source, R code)
Diagnostics and Spike-and-Slab Summaries (source, R code)
Getting Started with bgms (source, R code)
Checking Prior Sensitivity (source, R code)

Downloads:

Package source: bgms_0.2.0.0.tar.gz
Windows binaries: r-devel: bgms_0.1.6.3.zip, r-release: bgms_0.1.6.3.zip, r-oldrel: bgms_0.1.6.3.zip
macOS binaries: r-release (arm64): bgms_0.1.6.3.tgz, r-oldrel (arm64): bgms_0.1.6.3.tgz, r-release (x86_64): bgms_0.1.6.3.tgz, r-oldrel (x86_64): bgms_0.1.6.3.tgz
Old sources: bgms archive

Reverse dependencies:

Reverse imports: easybgm

Linking:

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