View source: R/simulate_epidemics.R
simulate_seir_process | R Documentation |
Simulates a deterministic SEIR model from model parameters, times to solve over, and population size.
simulate_seir_process(pars, times, N = 1e+05, switch_model = FALSE)
pars |
SEIR model parameters. |
times |
Times over which the model is solved. |
N |
Population size. Defaults to 100000. |
Returns a list of 7 things:
Plot of all SEIR compartments over time
Plot of incidence and prevalence over time
Solution of ordinary differential equation
Absolute incidence per time point (raw incidence)
Per capita incidence per time point
Per capita prevalence (compartments E+I) per time point
Overall probability of infection
James Hay, jhay@hsph.harvard.edu
Other simulation functions:
simulate_infection_times()
,
simulate_observations_wrapper()
,
simulate_reporting()
,
simulate_seir_wrapper()
,
simulate_viral_loads_wrapper()
,
simulate_viral_loads()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.