View source: R/simulate_epidemics.R
simulate_seir_wrapper | R Documentation |
Simulates a deterministic or stochastic SEIR model from model parameters
simulate_seir_wrapper(
N = 1e+05,
times,
pars,
version = "ode",
switch_model = FALSE,
beta_smooth = 0.8,
convert_daily = TRUE
)
@param N Population size. Defaults to 100000. @param times Vector of times to solve model over @param pars Named vector of SEIR model parameters @param version String either "ode" for the deterministic version or "odin" for stochastic @param switch_model If TRUE, uses the SEIR model with 2 switch points in transmission intensity @param beta_smooth spar parameter fed to smooth.spline, used to smooth the time-varying beta
Returns a list of 6 things: 1. Data frame of the SEIR solution 2. Vector of absolute incidence per time point 3. Overall probability of infection 4. Plot of incidence over time 5. Average growth rates over different time periods 6. Plot of average growth rates over different time periods
James Hay, jameshay218@gmail.com
Other simulation functions:
simulate_infection_times()
,
simulate_observations_wrapper()
,
simulate_reporting()
,
simulate_seir_process()
,
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.