Deterministic SIR model with R

Federica Gazzelloni

April 22, 2023

Materials

All materials we need:

sir_pkgs <- c("tidyverse","deSolve")
install.packages(sir_pkgs)

GitHub Repo: https://github.com/Fgazzelloni/sir-model-with-R/

Introduction

In this presentation, we will explore how to implement the deterministic SIR model in R, including how to simulate the model, plot the results, and interpret the output.

We will also discuss the assumptions and limitations of the model and how to extend it to more complex scenarios.

So, let’s dive in and learn more about the deterministic SIR model in R!

What is a SIR model?

  • The SIR model is a mathematical model used to describe the spread of infectious diseases in a population.

  • The model divides the population into three compartments:

    • susceptible
    • infected
    • recovered

The deterministic version of the SIR model assumes that the transmission rate and recovery rate are constant over time and that the population is homogeneous.