A library of published compartmental epidemic models, and classes to represent demographic structure, non-pharmaceutical interventions, and vaccination regimes, to compose epidemic scenarios.
This issue is to request better seed management for comparisons across scenarios in the Ebola virus disease vignette. The code currently shows seed resetting using set.seed() for each intervention scenario. A better way to use the same seed for comparable model runs with and without interventions (or with different parameter sets) is to use withr::with_preserved_seed() (or withr::with_seed() as appropriate).
This issue is to request better seed management for comparisons across scenarios in the Ebola virus disease vignette. The code currently shows seed resetting using
set.seed()
for each intervention scenario. A better way to use the same seed for comparable model runs with and without interventions (or with different parameter sets) is to usewithr::with_preserved_seed()
(orwithr::with_seed()
as appropriate).