This R package is under development.
This R package is used to build and analyze structural graphical models as proposed by Pearl [2009. Causality: Models, Reasoning and Inference (Second Ed). Cambridge: Cambridge University Press. chapter 8]. This approach allows for bounded estimation of counterfactuals in an experiment where (i) all variables are discrete and (ii) not all variables are directly manipulated by the randomized assignment mechanism. This is done by modeling the correlated latent background variables determining all observable variables. Inference is conducted by constructing a Bayesian statistical model.
To install:
install.packages("remotes")
remotes::install_github("karimn/boundr")
Please note that this package is still very incomplete, particularly in terms of documentation.
What you can do with boundr
:
Define a directed cyclic graph (DAG) composed of
Define causal quantities.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.