1: \begin{abstract}
2: Directed Acyclic Graphs (DAGs) provide a powerful framework to model causal relationships among variables in multivariate settings; in addition, through the \textit{do-calculus} theory, they allow for the identification and estimation of causal effects between variables also from pure observational data.
3: In this setting, the process of inferring the DAG structure from the data is referred to as causal structure learning or causal discovery.
4: We introduce \textbf{\texttt{BCDAG}}, an \textbf{\texttt{R}} package for Bayesian causal discovery and causal effect estimation from Gaussian observational data, implementing the Markov chain Monte Carlo (MCMC) scheme proposed by \cite{Castelletti:Mascaro:2021}. Our implementation scales efficiently with the number of observations and, whenever the DAGs are sufficiently \textit{sparse}, with the number of variables in the dataset.
5: 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 \textbf{\texttt{BCDAG}}. We then illustrate the main functions and algorithms on both real and simulated datasets.
6:
7: \vspace{0.7cm}
8: \noindent
9: Keywords: Graphical model, Bayesian structure learning, Causal inference, Markov chain Monte Carlo, \textbf{\texttt{R}}
10:
11: \end{abstract}