The SIS model is a compartmental model for infectious
diseases where individuals do not gain permanent immunity after
recovery. Instead, they return to the susceptible state. It
divides the population into two states: Susceptible and
Infected.
The model is defined by two state transitions:
$$S \stackrel{\beta S I / N}{\longrightarrow} I$$
$$I \stackrel{\gamma I}{\longrightarrow} S$$
where \(\beta\) is the transmission rate, \(\gamma\) is the
recovery rate, and \(N = S + I\) is the total population size in
each node. Here, \(S\) and \(I\) represent the number of
susceptible and infected individuals in that specific node.
The argument u0 must be a data.frame with one row for
each node with the following columns:
- S
The number of susceptible individuals in each node
- I
The number of infected individuals in each node