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
Copy file name to clipboardExpand all lines: episodes/modelling-interventions.Rmd
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -440,7 +440,7 @@ From the plot, we see that the peak number of total number of infectious individ
440
440
::::::::::::::::::::::::::::::::::::::::::::::::
441
441
442
442
Lastly, if you want to plot new infections from an `epidemics::model_default()` that includes a `vaccination` intervention, you need to add one argument to `epidemics::new_infections()`:
443
-
Set `compartments_from_susceptible = "vaccinated"` to tell the function that people moving from "susceptible" to "vaccinated" are not becoming infected. This ensures vaccinated individuals aren't counted as infections.
443
+
Set `exclude_compartments = "vaccinated"` to tell the function that people moving from "susceptible" to "vaccinated" are not becoming infected. This ensures vaccinated individuals aren't counted as infections.
444
444
445
445
::::::::::::::::::::: spoiler
446
446
@@ -449,13 +449,13 @@ Note that if we add `by_group = FALSE` in `epidemics::new_infections()`, we get
449
449
```{r}
450
450
infections_baseline <- epidemics::new_infections(
451
451
data = output_baseline,
452
-
compartments_from_susceptible = "vaccinated", # if vaccination
452
+
exclude_compartments = "vaccinated", # if vaccination
Copy file name to clipboardExpand all lines: episodes/vaccine-comparisons.Rmd
+19-19Lines changed: 19 additions & 19 deletions
Original file line number
Diff line number
Diff line change
@@ -304,14 +304,14 @@ To understand the **indirect** effect of vaccinations, we want to know the effec
304
304
The inputs required are :
305
305
306
306
+`data` : the model output,
307
-
+`compartments_from_susceptible` : this is an optional input, but in our case needed. We don't want the number of people vaccinated to be counted as new infections, so we need to specify the name of the model compartment where individuals transition out from `susceptible` (in this example `vaccinated`),
307
+
+`exclude_compartments` : this is an optional input, but in our case needed. We don't want the number of people vaccinated to be counted as new infections, so we need to specify the name of the model compartment where individuals transition out from `susceptible` (in this example `vaccinated`),
308
308
+`by_group` : should the results be calculated for each demographic group separately.
0 commit comments