causaloptim

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

CRAN Package

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.


Documentation


Team


Insights

Last 30 days

This package has been downloaded 377 times in the last 30 days. More than a random curiosity, but not quite a blockbuster. Still, it's gaining traction! The following heatmap shows the distribution of downloads per day. Yesterday, it was downloaded 16 times.

Sun
Mon
Tue
Wed
Thu
Fri
Sat
0 downloadsMar 2, 2025
8 downloadsMar 3, 2025
21 downloadsMar 4, 2025
32 downloadsMar 5, 2025
3 downloadsMar 6, 2025
11 downloadsMar 7, 2025
8 downloadsMar 8, 2025
4 downloadsMar 9, 2025
4 downloadsMar 10, 2025
16 downloadsMar 11, 2025
12 downloadsMar 12, 2025
17 downloadsMar 13, 2025
4 downloadsMar 14, 2025
26 downloadsMar 15, 2025
3 downloadsMar 16, 2025
16 downloadsMar 17, 2025
20 downloadsMar 18, 2025
8 downloadsMar 19, 2025
18 downloadsMar 20, 2025
28 downloadsMar 21, 2025
16 downloadsMar 22, 2025
10 downloadsMar 23, 2025
14 downloadsMar 24, 2025
2 downloadsMar 25, 2025
5 downloadsMar 26, 2025
5 downloadsMar 27, 2025
29 downloadsMar 28, 2025
8 downloadsMar 29, 2025
7 downloadsMar 30, 2025
6 downloadsMar 31, 2025
16 downloadsApr 1, 2025
0 downloadsApr 2, 2025
0 downloadsApr 3, 2025
0 downloadsApr 4, 2025
0 downloadsApr 5, 2025
2
32

The following line graph shows the downloads per day. You can hover over the graph to see the exact number of downloads per day.

Last 365 days

This package has been downloaded 5,012 times in the last 365 days. A solid achievement! Enough downloads to get noticed at department meetings. The day with the most downloads was Oct 20, 2024 with 49 downloads.

The following line graph shows the downloads per day. You can hover over the graph to see the exact number of downloads per day.

Data provided by CRAN


Binaries


Dependencies

  • Depends1 package
  • Imports2 packages
  • Suggests3 packages