Package: causaloptim 1.0.0
causaloptim: An Interface to Specify Causal Graphs and Compute Bounds on Causal Effects
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>.
Authors:
causaloptim_1.0.0.tar.gz
causaloptim_1.0.0.zip(r-4.5)causaloptim_1.0.0.zip(r-4.4)causaloptim_1.0.0.zip(r-4.3)
causaloptim_1.0.0.tgz(r-4.4-any)causaloptim_1.0.0.tgz(r-4.3-any)
causaloptim_1.0.0.tar.gz(r-4.5-noble)causaloptim_1.0.0.tar.gz(r-4.4-noble)
causaloptim_1.0.0.tgz(r-4.4-emscripten)causaloptim_1.0.0.tgz(r-4.3-emscripten)
causaloptim.pdf |causaloptim.html✨
causaloptim/json (API)
NEWS
# Install 'causaloptim' in R: |
install.packages('causaloptim', repos = c('https://sachsmc.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/sachsmc/causaloptim/issues
Last updated 1 months agofrom:2d70d790af. Checks:OK: 7. Indexed: yes.
Target | Result | Date |
---|---|---|
Doc / Vignettes | OK | Nov 14 2024 |
R-4.5-win | OK | Nov 14 2024 |
R-4.5-linux | OK | Nov 14 2024 |
R-4.4-win | OK | Nov 14 2024 |
R-4.4-mac | OK | Nov 14 2024 |
R-4.3-win | OK | Nov 14 2024 |
R-4.3-mac | OK | Nov 14 2024 |
Exports:analyze_graphbtm_varcausalproblemcheckcheck_constraints_violatedcheck_linear_objectivecheck_parentsconstraintscheckcreate_causalmodelcreate_effect_vectorcreate_linearcausalproblemcreate_q_matrixcreate_response_functionfind_all_pathsget_default_effectgraphrescheckinitialize_graphinterpret_boundslatex_boundslist_to_pathoptimize_effect_2parse_constraintsparse_effectplot_graphresquerycheckrdirichletsample_distributionsimulate_boundsspecify_graphupdate_effect
Dependencies:base64encbslibcachemclicommonmarkcpp11crayondigestfastmapfontawesomefsgluehtmltoolshttpuvigraphjquerylibjsonlitelaterlatticelifecyclemagrittrMatrixmemoisemimepkgconfigpromisesR6rappdirsrcddRcpprlangsassshinysourcetoolsvctrswithrxtable
Code from examples in manuscript
Rendered fromexample-code.Rmd
usingknitr::rmarkdown
on Nov 14 2024.Last update: 2024-08-30
Started: 2020-03-09
How to use the causaloptim Shiny app to analyze graphs
Rendered fromshinyapp.Rmd
usingknitr::rmarkdown
on Nov 14 2024.Last update: 2023-10-05
Started: 2019-08-15
Improving the speed of computing causal bounds
Rendered fromvertexenum-speed.Rmd
usingknitr::rmarkdown
on Nov 14 2024.Last update: 2023-01-21
Started: 2021-01-20