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
Therefore, we specify ` reduction = matrix(c(0.5, 0.01, 0.01))`. We assume that the school closures start on day 50 and continue to be in place for a further 100 days. Therefore our intervention object is:
145
145
146
146
```{r intervention}
147
-
close_schools <- intervention(
147
+
close_schools <- epidemics::intervention(
148
148
name = "School closure",
149
149
type = "contacts",
150
150
time_begin = 50,
151
151
time_end = 50 + 100,
152
152
reduction = matrix(c(0.5, 0.01, 0.01))
153
153
)
154
-
155
-
close_schools
156
154
```
157
155
158
156
::::::::::::::::::::::::::::::::::::: callout
@@ -183,7 +181,7 @@ The contacts within group 1 are reduced by 50% twice to accommodate for a 50% re
183
181
We run the model with ` intervention = list(contacts = close_schools)` as follows:
184
182
185
183
```{r school}
186
-
output_school <- model_default(
184
+
output_school <- epidemics::model_default(
187
185
# population
188
186
population = uk_population,
189
187
# rate
@@ -204,7 +202,7 @@ To observe the effect of our intervention, we will combine the baseline and inte
@@ -250,21 +248,19 @@ We expect that mask wearing will reduce an individual's infectiousness, based on
250
248
We create an intervention object with `type = rate` and `reduction = 0.161`. Using parameters adapted from [Li et al. 2020](https://doi.org/10.1371/journal.pone.0237691) we have proportion wearing masks = coverage $\times$ availability = $0.54 \times 0.525 = 0.2835$ and proportion reduction in transmission rate = $0.575$. Therefore, $\theta = 0.2835 \times 0.575 = 0.163$. We assume that the mask wearing mandate starts at day 40 and continue to be in place for 200 days.
251
249
252
250
```{r masks}
253
-
mask_mandate <- intervention(
251
+
mask_mandate <- epidemics::intervention(
254
252
name = "mask mandate",
255
253
type = "rate",
256
254
time_begin = 40,
257
255
time_end = 40 + 200,
258
256
reduction = 0.163
259
257
)
260
-
261
-
mask_mandate
262
258
```
263
259
264
260
To implement this intervention on the transmission rate $\beta$, we specify `intervention = list(transmission_rate = mask_mandate)`.
0 commit comments