het.run: Generate an SIR Heterogeneous Mixing Sample

het.runR Documentation

Generate an SIR Heterogeneous Mixing Sample

Description

Generate an SIR Heterogeneous Mixing Sample

Usage

het.run(mxdst, tmax, gmma, rho = 0, seed = NULL)

Arguments

mxdst

A numeric vector of contact rates, as produced by [het.population()].

tmax

The maximum time to simulate until

gmma

The mean recovery rate (I -> R transition rate)

rho

The mean immunity loss rate (R -> S transition rate)

seed

Random number seed

Value

A data.table

See Also

Other heterogeneity: het.hist(), het.population(), sample_pair(), sample_until()

Examples

het.run(
  mxdst = het.population(n = 100, beta.mean = 2, beta.var = 0.001),
  tmax = 10, gmma = 1
)

ICI3D/ici3d-pkg documentation built on July 2, 2023, 1:59 p.m.