daedalus implements the integrated epidemiological and economic model in Haw et al. (2022).
Installation
You can install the development version of daedalus from this repository using the pak package, or from the Jameel Institute R-universe.
# install.packages("pak")
pak::pak("jameel-institute/daedalus", upgrade = FALSE)
# installation from R-universe
install.packages(
"daedalus",
repos = c(
"https://jameel-institute.r-universe.dev", "https://cloud.r-project.org"
)
)
Quick start
The model can be run for any country or territory in the country_names
list by passing the country name to the function. This automatically pulls country-specific demographic and economic data, which is included in the package, into the model (see the ‘Get started’ vignette for more details).
library(daedalus)
# run model for Canada
data <- daedalus("Canada", "influenza_1918")
# get pandemic costs as a total in million dollars
get_costs(data, "total")
#> [1] 1621184
# disaggregate total for economic, education, and health costs
get_costs(data, "domain")
#> economic education life_years
#> 33680.950 2201.333 1585301.497
Users can select infection parameters from among seven epidemics caused by directly-transmitted viral respiratory pathogens, which are stored in the package as daedalus::infection_data
, with epidemic identifiers are stored as daedalus::epidemic_names
.
Users can override default country contact data and epidemic-specific infection arguments by passing custom classes to daedalus()
; see the package website for more details.
Users can also model the implementation of pandemic response measures: for more on this see the documentation for the main model function daedalus()
, and the vignette on modelling interventions on the package website.
Related projects
daedalus is an R implementation of the scenario model from a project on the economics of pandemic preparedness.