# BCDAG: An R package for Bayesian structure and Causal learning of Gaussian DAGs

arXiv: https://arxiv.org/abs/2201.12003 · HTML: https://mlsanity.com/paper/2201.12003/

## Key facts

- Cited by 1 papers in the map (data through 14 Oct 2026).
- Builds on 12 of its 51 references that are in the map.
- First posted on arXiv 28 Jan 2022.

## Builds on (most cited first, 12 of 12)

- [Learning Bayesian Networks: The Combination of Knowledge and Statistical Data](https://mlsanity.com/paper/1302.6815/) (2013)
- [Invariant Causal Prediction for Nonlinear Models](https://mlsanity.com/paper/1706.08576/) (2017)
- [Causal Structure Learning](https://mlsanity.com/paper/1706.09141/) (2017)
- [Causal Discovery Toolbox: Uncover causal relationships in Python](https://mlsanity.com/paper/1903.02278/) (2019)
- [Parameter Priors for Directed Acyclic Graphical Models and the Characterization of Several Probability Distributions](https://mlsanity.com/paper/1301.6697/) (2013)
- [Efficient Sampling and Structure Learning of Bayesian Networks](https://mlsanity.com/paper/1803.07859/) (2018)
- [Estimating the effect of joint interventions from observational data in sparse high-dimensional settings](https://mlsanity.com/paper/1407.2451/) (2014)
- [Bayesian structure learning and sampling of Bayesian networks with the R package BiDAG](https://mlsanity.com/paper/2105.00488/) (2021)
- [Minimal I-MAP MCMC for Scalable Structure Discovery in Causal DAG Models](https://mlsanity.com/paper/1803.05554/) (2018)
- [Posterior Graph Selection and Estimation Consistency for High-dimensional Bayesian DAG Models](https://mlsanity.com/paper/1611.01205/) (2016)
- [A review of some recent advances in causal inference](https://mlsanity.com/paper/1506.07669/) (2015)
- [Bayesian causal inference in probit graphical models](https://mlsanity.com/paper/2009.04795/) (2020)

## Built on by (most cited first, 1 of 1)

- [Learning to Induce Causal Structure](https://mlsanity.com/paper/2204.04875/) (2022)

## Abstract (arXiv)

Directed Acyclic Graphs (DAGs) provide a powerful framework to model causal relationships among variables in multivariate settings; in addition, through the do-calculus theory, they allow for the identification and estimation of causal effects between variables also from pure observational data. In this setting, the process of inferring the DAG structure from the data is referred to as causal structure learning or causal discovery. We introduce BCDAG, an R package for Bayesian causal discovery and causal effect estimation from Gaussian observational data, implementing the Markov chain Monte Carlo (MCMC) scheme proposed by Castelletti & Mascaro (2021). Our implementation scales efficiently with the number of observations and, whenever the DAGs are sufficiently sparse, with the number of variables in the dataset. The package also provides functions for convergence diagnostics and for visualizing and summarizing posterior inference. In this paper, we present the key features of the underlying methodology along with its implementation in BCDAG. We then illustrate the main functions and algorithms on both real and simulated datasets.
