CRAN/E | causaloptim

causaloptim

An Interface to Specify Causal Graphs and Compute Bounds on Causal Effects

Installation

About

When causal quantities are not identifiable from the observed data, it still may be possible to bound these quantities using the observed data. We outline a class of problems for which the derivation of tight bounds is always a linear programming problem and can therefore, at least theoretically, be solved using a symbolic linear optimizer. We extend and generalize the approach of Balke and Pearl (1994) doi:10.1016/B978-1-55860-332-5.50011-0 and we provide a user friendly graphical interface for setting up such problems via directed acyclic graphs (DAG), which only allow for problems within this class to be depicted. The user can then define linear constraints to further refine their assumptions to meet their specific problem, and then specify a causal query using a text interface. The program converts this user defined DAG, query, and constraints, and returns tight bounds. The bounds can be converted to R functions to evaluate them for specific datasets, and to latex code for publication. The methods and proofs of tightness and validity of the bounds are described in a paper by Sachs, Jonzon, Gabriel, and Sjölander (2022) doi:10.1080/10618600.2022.2071905.

Citation causaloptim citation info
github.com/sachsmc/causaloptim
Bug report File report

Key Metrics

Version 0.9.8
R ≥ 3.5.0
Published 2023-10-31 176 days ago
Needs compilation? yes
License MIT
License File
CRAN checks causaloptim results

Downloads

Yesterday 13 +86%
Last 7 days 97 +2%
Last 30 days 361 -2%
Last 90 days 1.182 -22%
Last 365 days 4.716 +2%

Maintainer

Maintainer

Michael C Sachs

sachsmc@gmail.com

Authors

Michael C Sachs

aut / cre

Erin E Gabriel

aut

Arvid Sjölander

aut

Gustav Jonzon

aut

Alexander A Balke

ctb

((C++ code))

Colorado Reed

ctb

((graph-creator.js))

Material

README
NEWS
Reference manual
Package source

In Views

CausalInference

Vignettes

Code from examples in manuscript
How to use the causaloptim Shiny app to analyze graphs
Improving the speed of computing causal bounds

macOS

r-release

arm64

r-oldrel

arm64

r-release

x86_64

r-oldrel

x86_64

Windows

r-devel

x86_64

r-release

x86_64

r-oldrel

x86_64

Old Sources

causaloptim archive

Depends

R ≥ 3.5.0
igraph

Imports

methods
Rcpp ≥ 1.0.1
shiny
rcdd

Suggests

testthat ≥ 3.0.0
knitr
rmarkdown

LinkingTo

Rcpp