simulate_seir_process: Simulate SEIR model

View source: R/simulate_epidemics.R

simulate_seir_processR Documentation

Simulate SEIR model

Description

Simulates a deterministic SEIR model from model parameters, times to solve over, and population size.

Usage

simulate_seir_process(pars, times, N = 1e+05, switch_model = FALSE)

Arguments

pars

SEIR model parameters.

times

Times over which the model is solved.

N

Population size. Defaults to 100000.

Value

Returns a list of 7 things:

  1. Plot of all SEIR compartments over time

  2. Plot of incidence and prevalence over time

  3. Solution of ordinary differential equation

  4. Absolute incidence per time point (raw incidence)

  5. Per capita incidence per time point

  6. Per capita prevalence (compartments E+I) per time point

  7. Overall probability of infection

Author(s)

James Hay, jhay@hsph.harvard.edu

See Also

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


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