To utilize the artifacts in this repository, follow the installation guides below.
- To view
.mdMarkdown files contained in this repository, consider a Markdown viewer like the one integrated into Visual Studio Code. - To display and edit graphs specified in
.graphmlformat, use a graph editor like yEd by yworks.
To execute the Python source code, make sure that you have Python 3.10.0 or any later version installed. Make sure that the installation of Python also includes the package manager pip. Then, execute the following steps:
- Optionally, to isolate your local python environment from this one, create a virtual environment:
- Execute
python -m venv .venvto create a virtual environment in the directory .venv/. - Activate the virtual environment, e.g., via
.venv/scripts/Activate.ps1on Windows.
- Execute
- Install all necessary requirements via
pip install -r requirements.txt. - When using a virtual environment and wanting to execute jupyter notebooks (
.ipynb), you also need to install a jupyter kernel viaipython kernel install --user --name=venv. IDEs like VS Code will prompt to install the kernel automatically
In order to run the .R scripts and .Rmd notebooks, ensure that you have R (version > 4.0) and an appropriate IDE like RStudio installed on your machine.
Then, install all required packages via install.packages(c("tidyverse", "patchwork")).
In order to run the .R scripts and .Rmd notebooks, ensure that you have R (version > 4.0) and an appropriate IDE like RStudio installed on your machine.
Then, ensure the following steps:
- Install the C toolchain by following the instructions for Windows, Mac OS, or Linux respectively.
- Restart RStudio and follow the instructions starting with the Installation of RStan
- Install the
devtoolsand the latest version ofstanby running the following commands
install.packages("devtools")
devtools::install_github("stan-dev/cmdstanr")
cmdstanr::install_cmdstan()- Install all required packages via
install.packages(c("tidyverse", "ggdag", "brms", "marginaleffects", "patchwork")). - Create a folder called fits within src/ such that
brmshas a location to place all Bayesian models. - Open the
.Rprojfile with RStudio which will setup the environment correctly.