Skip to content

Commit f9e5859

Browse files
committed
edit text clarity
1 parent 0c78b9a commit f9e5859

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

episodes/modelling-interventions.Rmd

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -439,13 +439,12 @@ From the plot, we see that the peak number of total number of infectious individ
439439
:::::::::::::::::::::::::::::::::
440440
::::::::::::::::::::::::::::::::::::::::::::::::
441441

442-
Lastly, if you are interested in plotting the trajectory of new infections from an `epidemics::model_default()` with a `vaccination` intervention, you need to specify one additional argument.
443-
At `epidemics::new_infections()` specify `compartments_from_susceptible = "vaccinated"` to name the model compartments into which individuals transition from the "susceptible" compartment, and which are not related to infection. In the scenario above, "vaccinated" individuals who are no longer susceptible should not be counted as infected.
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.
444444

445445
::::::::::::::::::::: spoiler
446446

447-
Notice that if we use `by_group = FALSE` in `epidemics::new_infections()`, we get a summary of the new infections in all demographic groups.
448-
To get an age-stratified plot, keep the default `by_group = TRUE` and then add `linetype = demography_group` when declaring variables in `ggplot(aes(...))`.
447+
Note that if we add `by_group = FALSE` in `epidemics::new_infections()`, we get a summary of the new infections in the population.
449448

450449
```{r}
451450
infections_baseline <- epidemics::new_infections(
@@ -482,6 +481,8 @@ infections_baseline_interv %>%
482481
theme_bw()
483482
```
484483

484+
To get an age-stratified plot, keep the default `by_group = TRUE` and then add `linetype = demography_group` when declaring variables in `ggplot(aes(...))`.
485+
485486
:::::::::::::::::::::
486487

487488

0 commit comments

Comments
 (0)