A fast, time-discrete compartmental approximation of malariasimulation.
You can install the development version of malariasimple from GitHub with:
# install.packages("pak")
pak::pak("mrc-ide/malariasimple")
Performing a model simulation in malariasimple is a three-step process:
library(malariasimple)
#1. Define model parameters
params <- get_parameters() |>
set_equilibrium(init_EIR = 10)
#2. Run model
out <- run_simulation(params)
The model itself is defined in a single script
(inst/odin/malariasimple_deterministic.R
) written with
odin.dust.
Customisations occur in the parameter set-up stage, which is facilitated
by the helper functions found in R/
.