het.run | R Documentation |
Generate an SIR Heterogeneous Mixing Sample
het.run(mxdst, tmax, gmma, rho = 0, seed = NULL)
mxdst |
A numeric vector of contact rates, as produced by
|
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 |
A data.table
Other heterogeneity:
het.hist()
,
het.population()
,
sample_pair()
,
sample_until()
het.run(
mxdst = het.population(n = 100, beta.mean = 2, beta.var = 0.001),
tmax = 10, gmma = 1
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.