This webpage uses the Runge-Kutta-Fehlberg fourth-order method with fifth-order error checking (RKF45) to approximate the solution to the SIR equations with the δ parameter to account for quarantine effects:
dtdSdtdIdtdR=−NβI(1−δ)S=NβI(1−δ)S−γI=γI. Where t is time and is usually in units of days. S is the number of susceptible persons, I is the number of infected persons and R is the number of recovered persons. β is a parameter that pertains to the average number of contacts per person per time and the rate of transmission for the disease. γ is the inverse of the average time a person is infected with the disease. Consequently, the basic reproduction number, which is typically represented as R0 (not to be confused with the initial population of recovered individuals), is given by:
R0=γβ(1−δ) (Ridenhour et al., 2014). N is the total population.
If you would like to examine a more realistic model, with birth and death rates, loss of immunity, and incubation periods, then check out the SEIRS model solver webpage.
Ridenhour, B; Kowalik, JM; & Shay, DK (2014). Unraveling R0: Considerations for Public Health Applications. American Journal of Public Health, 104(2): e32–e41. doi: 10.2105/AJPH.2013.301704. PMID 24328646. PMC 3935673.