Learn and Apply Directed Acyclic Graphs for Causal Inference

Causal Inference Assistance (CIA) for performing causal inference within the structural causal modelling framework. Structure learning is performed using partition Markov chain Monte Carlo (Kuipers & Moffa, 2017) and several additional functions have been added to help with causal inference. Kuipers and Moffa (2017) .


Causal Inference Assistant (cia)

R-CMD-check codecov

This package is for performing causal structure learning and inference assuming the causal process follows a directed acyclic graph (DAG). It includes functionality to learn the structure using partition MCMC along with building Bayesian networks and performing probabilistic queries (using gRain).

The bulk of this package is an implementation of partition Markov Chain Monte Carlo (PMCMC) algorithm in R. Our PMCMC is similar to the BiDAG implementation but the scoring function defaults to using bnlearn which allows for a range of scoring assumptions and priors for pairwise edge probabilities. There is also more exposure of the sampling procedure itself, whereby the algorithm can return both partitions and DAGs while providing convergence diagnostics to understand how well the algorithm is sampling in both partition and DAG space.

We provide a simple example and function documentation.

Installation

Install the released version of cia from CRAN:

install.packages("cia")

Or, install the development version from GitHub:

# install.packages("devtools")
devtools::install_github("SpaceOdyssey/cia")

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("cia")

1.0.0 by Mathew Varidel, 2 years ago


https://spaceodyssey.github.io/cia/


Report a bug at https://github.com/SpaceOdyssey/cia/issues


Browse source code at https://github.com/cran/cia


Authors: Mathew Varidel [aut, cre, cph] , Victor An [ctb]


Documentation:   PDF Manual  


MIT + file LICENSE license


Imports bnlearn, igraph, doParallel, parallel, foreach, arrangements, graphics, dplyr, rlang, fastmatch, methods, gRain, patchwork, tidyr

Suggests rmarkdown, knitr, testthat, gtools, gRbase, ggplot2, qgraph, dagitty


See at CRAN