Skip to content

Commit a23d3c7

Browse files
committed
minor text edits to simulating-transmission.Rmd
1 parent eaa92fb commit a23d3c7

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

episodes/simulating-transmission.Rmd

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ webshot::install_phantomjs(force = TRUE)
3131

3232
+ Complete tutorial on [contact matrices](../episodes/contact-matrices.md).
3333

34-
Learners should familiarise themselves with following concept dependencies before working through this tutorial:
34+
Learners should familiarise themselves with the following concept dependencies before working through this tutorial:
3535

3636
**Mathematical Modelling**: [Introduction to infectious disease models](https://doi.org/10.1038/s41592-020-0856-2), [state variables](../learners/reference.md#state), [model parameters](../learners/reference.md#parsode), [initial conditions](../learners/reference.md#initial), [differential equations](../learners/reference.md#ordinary).
3737

@@ -57,7 +57,7 @@ go to the [main setup page](../learners/setup.md#software-setup).
5757

5858
## Introduction
5959

60-
Mathematical models are useful tools for generating future trajectories of disease spread. In this tutorial, we will use the R package `{epidemics}` to generate disease trajectories of an influenza strain with pandemic potential. By the end of this tutorial, you will be able to generate the trajectory below showing the number of infectious individuals in different age categories over time.
60+
Mathematical models are useful tools for generating trajectories of disease spread. In this tutorial, we will use the R package `{epidemics}` to generate disease trajectories of an influenza strain with pandemic potential. By the end of this tutorial, you will be able to generate the trajectory below showing the number of infectious individuals in different age categories over time.
6161

6262
In this tutorial we are going to learn how to use the `{epidemics}` package to simulate disease trajectories and access to social contact data with `{socialmixr}`. We'll use `{dplyr}`, `{ggplot2}` and the pipe `%>%` to connect some of their functions, so let's also call to the `{tidyverse}` package:
6363

@@ -142,7 +142,7 @@ $$
142142
\end{aligned}
143143
$$
144144

145-
Individuals in age group ($i$) move from the susceptible state ($S_i$) to the exposed state ($E_i$) via age-specific contacts with infectious individuals in all groups $\beta S_i \sum_j C_{i,j} I_j/N_j$. The contact matrix $C$ allows for heterogeneity in contacts between age groups. They then move to the infectious state at a rate $\alpha$ and recover at a rate $\gamma$. Note that this model assumes no loss of immunity (there are no flows out of the recovered state), which may not be applicable for all diseases as some allow for reinfection.
145+
Individuals in age group ($i$) move from the susceptible state ($S_i$) to the exposed state ($E_i$) via age-specific contacts with infectious individuals in all groups $\beta S_i \sum_j C_{i,j} I_j/N_j$. The contact matrix $C$ allows for heterogeneity in contacts between age groups. They then move to the infectious state at a rate $\alpha$ and recover at a rate $\gamma$. Note that this model assumes no loss of immunity (meaning there are no flows out of the recovered state), which may not be applicable to all diseases. Immunity wanes more rapidly for certain infections, allowing for reinfection.
146146

147147
The model parameters are:
148148

@@ -284,9 +284,9 @@ We combine the three initial conditions vectors into one matrix,
284284
```{r initial_conditions}
285285
# combine the initial conditions into a matrix class object
286286
initial_conditions <- rbind(
287-
initial_conditions_inf, # age group 1 (only group with infectious)
288-
initial_conditions_free, # age group 2
289-
initial_conditions_free # age group 3
287+
initial_conditions_inf, # age group [0,20) (only group with infectious)
288+
initial_conditions_free, # age group [20, 40)
289+
initial_conditions_free # age group 40+
290290
)
291291
292292
# use contact matrix to assign age group names

0 commit comments

Comments
 (0)