New model - Stochastic SEIR with population structure #261
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
A new stochastic SEIR model with population structure. The model is discrete time with daily stepping. The individuals in the compartments are assumed to be well-mixed, thus every individual experiences the same force of infection. Infection events are also assumed to be independent, thus the number of new infections at each time step is binomially distributed. For individuals, other transitions are assumed to be geometrically distributed, thus the number of people moving between compartments is also binomial distributed. Population and interventions are modelled using the same classes as model_default(). Currently the implementation does not support time-dependent parameters (except via interventions) or vectorised parameters. The default number of stochastic replicates is 1,000, and the runtime for the first example of model_default() (i.e. age-structured UK population with school closures run for 600 days) takes a few seconds (so about 100 times slower than the deterministic model).
Manual documentation and tests have been adapted from the existing ones for model_default().
Issue #260