Code for estimates of the excess mortality in Austria during the pandemic. Estimated using an age structured Bayesian generalized additive model, considering yearly trends and weekly seasonality.
The implementation is written in R using brms.
Builds are executed by first installing the renv
package and installing all required packages:
renv::restore()
Ensure that no build is skipped in the _targets.R
file, all tar_cue_skip
cues should look like this:
cue = tarchetypes::tar_cue_skip(FALSE)
Once all packages have been installed the targets pipeline can be executed using
run.sh
or
targets::tar_make()
A docker-compose file is provided in this project to ensure a reproducible development environment.
To run the rstudio server in docker first set a PASSWORD in the docker compose file and then execute the following command:
docker-compose -f docker-compose-rstudio.yml up