BMGM (Bayesian Mixed Graphical Model) is an R package for Bayesian inference on mixed graphical models, allowing the estimation of conditional independencies between continuous, discrete, categorical, and zero-inflated count data. The package employs MCMC sampling and spike-and-slab priors for structure learning and can handle missing data during inference.
You can install the development version of BMGM from GitHub with:
# install.packages("devtools")
devtools::install_github("mauroflorez/BMGM")For a more detailed example, see: https://mauroflorez.github.io/BMGM/articles/Example_Analysis.html
bmgm(): Fit the Bayesian Mixed Graphical Modelsampler_bmgm(): Gibbs sampler for generating data from the modelfind_lambda(): Optimize transformation parameter (Roy & Dunson, 2020)Florez, M., Gottard, A., McAdams, C., Guindani, M., & Vannucci, M. (2025). A Bayesian approach for inference on mixed graphical models. Bayesian Analysis, Advance Publication, 1–28. https://doi.org/10.1214/25-BA1557