Description Usage Arguments Value Examples
Simulate a stochastic epidemic curve using the Gompertz model.
1 | sim_gompertz(N = 10,dt = 1, y0 = 0.01, r, K = 1, n, alpha = 0.2)
|
N |
Total time course of the epidemic |
dt |
Time step |
y0 |
Initial inoculum or initial disease intensity |
r |
Infection rate |
K |
Maximum asymptote |
n |
Number or replicates or sample size for each time step |
alpha |
Variation parameter. stands for the variation for the replicates for each time step. The standard deviation is calculated as sd = alpha * y * (1 - y), being y the disease intensity for each time step. |
rep |
Replicates |
time |
Time after epidemic start |
y |
Disease intensity |
random_y |
Disease intensity after applying the random |
1 | sim_gompertz(N = 30, y0 = 0.01,dt = 5, r = 0.3, K = 1, alpha = 0.5, n = 4)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.