View source: R/project_immunity.r
project_immunity | R Documentation |
Project immunity from a baseline via vaccination coverage rates
project_immunity(
baseline_immunity,
baseline_year,
year,
coverage,
schedule,
maternal_immunity,
efficacy
)
baseline_immunity |
baseline immunity, as a named vector; the names correspond to lower limits of the age groups, and the vector itself to the corresponding levels of immunity. |
baseline_year |
year at which baseline immunity is taken (corresponding
to a column in the |
year |
year to project to |
coverage |
coverage with multiple vaccine doses, given as a matrix in which each row is a dose and each (named) column a year |
schedule |
the ages at which vaccines are given (in years). |
maternal_immunity |
the proportion maternally immune. |
efficacy |
vaccine efficacy. |
a data frame of immunity levels by age group (as in
baseline_immunity
).
Sebastian Funk <sebastian.funk@lshtm.ac.uk>
baseline_immunity <- c(`2` = 0.85, `5` = 0.9, `10` = 0.95)
coverage <- matrix(rep(0.9, 10), nrow = 2)
colnames(coverage) <- as.character(seq(2015, 2019))
project_immunity(
baseline_immunity, 2018, 2019, coverage = coverage,
schedule = c(1, 2), 0.5, 0.95
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.