The SEIR model contains four compartments; number of
susceptible (S), number of exposed (E) (those who have been
infected but are not yet infectious), number of infectious (I),
and number of recovered (R). Moreover, it has three state
transitions,
$$S \stackrel{\beta S I / N}{\longrightarrow} E$$
$$E \stackrel{\epsilon E}{\longrightarrow} I$$
$$I \stackrel{\gamma I}{\longrightarrow} R$$
where \(\beta\) is the transmission rate, \(\epsilon\) is the
incubation rate, \(\gamma\) is the recovery rate, and
\(N=S+E+I+R\).
The argument u0
must be a data.frame
with one row for
each node with the following columns:
- S
The number of sucsceptible in each node
- E
The number of exposed in each node
- I
The number of infected in each node
- R
The number of recovered in each node