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/vaccine-comparisons.Rmd
+9-8Lines changed: 9 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -41,6 +41,7 @@ In this tutorial we will compare different vaccination strategies using models f
41
41
library(ggplot2)
42
42
library(epidemics)
43
43
library(dplyr)
44
+
library(purrr)
44
45
```
45
46
46
47
## Key Terms
@@ -432,7 +433,7 @@ This **indirect** effect of vaccination programs is key to successfully controll
432
433
433
434
To evaluate the impact of vaccination programs, we often consider both the peak size, which indicates healthcare pressure at a single point in time, and the overall epidemic size, which refers to the cumulative number of infections.
434
435
435
-
We can find the cumulative sum using the R function `cumsum()` and use `purr::map_dfr()` to loop over a list of new infection data frames. We can see the difference in infection numbers is by several orders of magnitude.
436
+
We can find the cumulative sum using the R function `cumsum()` and use `purrr::map_dfr()` to loop over a list of new infection data frames. We can see the difference in infection numbers is by several orders of magnitude.
436
437
437
438
```{r}
438
439
# create function that returns the intervention type and cumulative sum for
0 commit comments