simulate_seir_wrapper: Wrapper for SEIR model simulation, deterministic or...

View source: R/simulate_epidemics.R

simulate_seir_wrapperR Documentation

Wrapper for SEIR model simulation, deterministic or stochastic

Description

Simulates a deterministic or stochastic SEIR model from model parameters

Usage

simulate_seir_wrapper(
  N = 1e+05,
  times,
  pars,
  version = "ode",
  switch_model = FALSE,
  beta_smooth = 0.8,
  convert_daily = TRUE
)

Details

@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

Value

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

Author(s)

James Hay, jameshay218@gmail.com

See Also

Other simulation functions: simulate_infection_times(), simulate_observations_wrapper(), simulate_reporting(), simulate_seir_process(), simulate_viral_loads_wrapper(), simulate_viral_loads()


jameshay218/virosolver documentation built on April 17, 2025, 2:57 p.m.