Last Updated: Oct 16, 2024
CausalR
is an R-Shiny user-friendly interface for CausalImpact
R package, which leverages the Bayesian modeling capabilities to estimate the causal effect of an intervention on a time series (Brodersen et al., 2015). CausalImpact
is inferred by comparing the counterfactual posterior and the observed data, but users are currently not able to easily navigate to the analysis and visualize the results. Going one step beyond, CausalR is able to generate and visualize a counterfactual prediction, or “what would have happened”, with highly customized features. In addition, CausalR
introduces a new workflow streamlining the causal analysis by giving users high input data customization, automating model building, and generating informative visualizations. Furthermore, CausalR
also offers a direct connection to the API of the Pandora data platform, one of the largest archeological databases where various types of time series of data are made available.
[![Alt Text](link_url)
Access here: https://isomemoapp.com/app/causalr
options(repos = c(getOption("repos"), PANDORA = "https://Pandora-IsoMemo.github.io/drat/"))
install.packages("DataTools")
install.packages("CausalR")
library(CausalR)
startApplication()
Open a terminal (command line):
Windows command line: Open the Start menu or press the Windows key + R; Type cmd or cmd.exe in the Run command box; Press Enter. MacOS: open the Terminal app. Linux: most Linux systems use the same default keyboard shortcut to start the command line: Ctrl-Alt-T or Super-T Copy paste the text below into the terminal and press Enter:
docker pull ghcr.io/pandora-isomemo/causalr:main
FOR MacOS M1 edition:
docker pull --platform linux/amd64 ghcr.io/pandora-isomemo/causalr:main
docker run -p 3838:3838 ghcr.io/pandora-isomemo/causalr:main
If the app is shutdown on Docker or if the terminal is closed the app will no longer work in your web browser (see point 4).
http://127.0.0.1:3838/
Refer to our Application Main Page for more details: https://pandora-isomemo.github.io/docs/apps.html#download-and-install-docker-image-of-the-app-3
In numerous fields such as economics, marketing, historical research, and public health, it's crucial for researchers to understand the causal impacts of interventions for policy-making, decision-making, and risk assessment analysis. An increasingly reliable method for these evaluations is the Bayesian counterfactual analysis of time series data (Landau et al 2022, Liu et al 2022, Kumar et al 2023, Yabe et al 2020). However, there are very few dependable tools for interfacing Bayesian causal analysis and automating the output in a highly sharable platform.
Introducing CausalR
, an R-Shiny application that provides a user-friendly interface to address this. Our goal is to broaden the adoption of Bayesian counterfactual analysis across various applications by making it more accessible to those less proficient in R coding. CausalR
incorporates modules for data import and the import and export of model instances, directly linking up to archeological, radiocarbon, and stable isotopic time series data from the Pandora open data platform.
Run the following R commands to kick start the app:
library(CausalR)
startApplication()