You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Non-pharmaceutical interventions](../learners/reference.md#NPIs) (NPIs) are measures put in place to reduce transmission that do not include the administration of drugs or vaccinations. NPIs aim at reducing contacts between infectious and susceptible individuals by closure of schools and workplaces, and other measures to prevent the spread of the disease, for example, washing hands and wearing masks.
55
+
We will investigate the effect of interventions on a COVID-19 outbreak using an SEIR model (`model_default()` in the R package `{epidemics}`). To be able to see the effect of our intervention, we will run a baseline variant of the model, i.e, without intervention.
57
56
58
-
We will investigate the effect of interventions on a COVID-19 outbreak using an SEIR model (`model_default()` in the R package `{epidemics}`). The SEIR model divides the population into four compartments: Susceptible (S), Exposed (E), Infectious (I), and Recovered (R). We will set the following parameters for our model: $R_0 = 2.7$ (basic reproduction number), latent period or pre-infectious period $= 4$ days, and the infectious period $= 5.5$ days (parameters adapted from [Davies et al. (2020)](https://doi.org/10.1016/S2468-2667(20)30133-X)). We adopt a contact matrix with age bins 0-18, 18-65, 65 years and older using `{socialmixr}`, and assume that one in every 1 million individuals in each age group is infectious at the start of the epidemic.
57
+
The SEIR model divides the population into four compartments: Susceptible (S), Exposed (E), Infectious (I), and Recovered (R). We will set the following parameters for our model: $R_0 = 2.7$ (basic reproduction number), latent period or pre-infectious period $= 4$ days, and the infectious period $= 5.5$ days (parameters adapted from [Davies et al. (2020)](https://doi.org/10.1016/S2468-2667(20)30133-X)). We adopt a contact matrix with age bins 0-18, 18-65, 65 years and older using `{socialmixr}`, and assume that one in every 1 million individuals in each age group is infectious at the start of the epidemic.
# prepare the population to model as affected by the epidemic
91
98
uk_population<-epidemics::population(
92
99
name="UK",
93
-
contact_matrix=contact_matrix,
100
+
contact_matrix=cm_matrix,
94
101
demography_vector=demography_vector,
95
102
initial_conditions=initial_conditions
96
103
)
97
104
```
98
105
99
-
#### Effect of school closures on COVID-19 spread
106
+
We run the model with a transmission rate $= 2.7/5.5$ (remember that [transmission rate = $R_0$* recovery rate](../episodes/simulating-transmission.md#the-basic-reproduction-number-r_0)), infectiousness rate $1/= 4$ and the recovery rate $= 1/5.5$ as follows:
[Non-pharmaceutical interventions](../learners/reference.md#NPIs) (NPIs) are measures put in place to reduce transmission that do not include the administration of drugs or vaccinations. NPIs aim at reducing contacts between infectious and susceptible individuals by closure of schools and workplaces, and other measures to prevent the spread of the disease, for example, washing hands and wearing masks.
133
+
134
+
### Effect of school closures on COVID-19 spread
100
135
101
136
The first NPI we will consider is the effect of school closures on reducing the number of individuals infected with COVID-19 over time. We assume that a school closure will reduce the frequency of contacts within and between different age groups. Based on empirical studies, we assume that school closures will reduce the contacts between school-aged children (aged 0-15) by 50%, and will cause a small reduction (1%) in the contacts between adults (aged 15 and over).
102
137
103
138
To include an intervention in our model we must create an `intervention` object. The inputs are the name of the intervention (`name`), the type of intervention (`contacts` or `rate`), the start time (`time_begin`), the end time (`time_end`) and the reduction (`reduction`). The values of the reduction matrix are specified in the same order as the age groups in the contact matrix.
104
139
105
140
106
141
```r
107
-
rownames(contact_matrix)
142
+
rownames(cm_matrix)
108
143
```
109
144
110
145
```output
@@ -115,7 +150,7 @@ Therefore, we specify ` reduction = matrix(c(0.5, 0.01, 0.01))`. We assume that
115
150
116
151
117
152
```r
118
-
close_schools<- intervention(
153
+
close_schools<-epidemics::intervention(
119
154
name="School closure",
120
155
type="contacts",
121
156
time_begin=50,
@@ -149,25 +184,11 @@ The contacts within group 1 are reduced by 50% twice to accommodate for a 50% re
149
184
150
185
::::::::::::::::::::::::::::::::::::::::::::::::
151
186
152
-
Using transmission rate $= 2.7/5.5$ (remember that [transmission rate = $R_0$/ infectious period](../episodes/simulating-transmission.md#the-basic-reproduction-number-r_0)), infectiousness rate $1/= 4$ and the recovery rate $= 1/5.5$ we run the model with ` intervention = list(contacts = close_schools)` as follows:
187
+
We run the model with ` intervention = list(contacts = close_schools)` as follows:
To be able to see the effect of our intervention, we also run a baseline variant of the model, i.e, without intervention, combine the two outputs into one data frame, and then plot the output. Here we plot the total number of infectious individuals in all age groups using `ggplot2::stat_summary()` function:
206
+
To observe the effect of our intervention, we will combine the baseline and interventionoutputs into a single data frame and then plot the results. Here we plot the total number of infectious individuals in all age groups using `ggplot2::stat_summary()` function:
We can see that with the intervention in place, the infection still spreads through the population and hence accumulation of immunity contributes to the eventual peak-and-decline. However, the peak number of infectious individuals is smaller (green dashed line) than the baseline with no intervention in place (red solid line), showing a reduction in the absolute number of cases.
238
249
239
250
240
251
241
-
####Effect of mask wearing on COVID-19 spread
252
+
### Effect of mask wearing on COVID-19 spread
242
253
243
254
We can also model the effect of other NPIs by reducing the value of the relevant parameters. For example, investigating the effect of mask wearing on the number of individuals infected with COVID-19 over time.
244
255
@@ -248,7 +259,7 @@ We create an intervention object with `type = rate` and `reduction = 0.161`. Usi
248
259
249
260
250
261
```r
251
-
mask_mandate<- intervention(
262
+
mask_mandate<-epidemics::intervention(
252
263
name="mask mandate",
253
264
type="rate",
254
265
time_begin=40,
@@ -261,7 +272,7 @@ To implement this intervention on the transmission rate $\beta$, we specify `int
@@ -332,7 +343,8 @@ Pharmaceutical interventions (PIs) are measures such as vaccination and mass tre
332
343
333
344
The diagram below shows the SEIRV model implemented using `model_default()` where susceptible individuals are vaccinated and then move to the $V$ class.
0 commit comments