Description Usage Arguments Value Examples
rSIR
returns a matrix contains information about time, number of susceptible people, infected people,
recover people, total number of people.
1 2 3 4 5 6 7 8 |
N0 |
An integer. The population size at time 0. |
S0 |
An integer. The initial number of susceptible people. |
I0 |
An integer. The initial number of infected people. |
R0 |
An integer. The initial number of recovered people. |
days |
An integer. The number of days for which to simulate. |
pars |
A numeric vector: (a.rate, i.rate, r.rate, pI, pIm). Description about pars
* |
A numeric matrix with 5 columns. Row i contains the values of (t, S_t, I_t, R_t, N_t) at time t.
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.