simulate_SEM: Simulate trajectories of the Stochastic SIR and SEIR...

View source: R/SEM-simulate.R

simulate_SEMR Documentation

Simulate trajectories of the Stochastic SIR and SEIR processes

Description

Also computes additional statistics such as MLEs and summary statistics

Usage

simulate_SEM(
  S0 = 1000,
  I0 = 10,
  t_end = 6,
  theta = list(R0 = 2.5, gamma = 1, lambda = 1, shape = 1),
  iota_dist = "exponential",
  gener = FALSE,
  b = 1/2
)

Arguments

S0

intial exposed population size

I0

intial exposed population size

t_end

end time of the simulation period

theta

parameters

iota_dist

c("exponential", "weibull"); distribution of the infection period

gener

logical; whether to use the generalized SIR of Severo (1972)

b

parameter of the generalized SIR

Value

a list with all types of useful objects


rmorsomme/PDSIR documentation built on April 27, 2023, 2:56 p.m.