Class to handle the SIR model. This class inherits from
SimInf_model, meaning that SIR
objects are fully compatible with all generic functions defined
for SimInf_model, such as run,
plot,
trajectory, and prevalence.
Details
The SIR model is a compartmental model for infectious diseases that divides the population into three states: Susceptible, Infected, and Recovered. It assumes that individuals gain permanent immunity after recovery.
The model is defined by two state transitions: $$S \stackrel{\beta S I / N}{\longrightarrow} I$$ $$I \stackrel{\gamma I}{\longrightarrow} R$$
where \(\beta\) is the transmission rate, \(\gamma\) is the recovery rate, and \(N = S + I + R\) is the total population size in each node. Here, \(S\), \(I\), and \(R\) represent the number of susceptible, infected, and recovered individuals in that specific node.
See also
SIR for creating an SIR model object,
SimInf_model for the parent class definition,
SEIR for a model including a latent period, and
SIS for a model without immunity.