SIR model (source code)

= SIR model
{c}
{wiki}

The SIR model divides a closed population into susceptible, infectious, and recovered compartments. Infection transfers people from $S$ to $I$, and recovery transfers them from $I$ to $R$.