Description Usage Arguments Value Author(s)
View source: R/getVaccineUptakeMultiplierFromAllocation.R
Calculates vaccine uptake multipliers suitable for use in flumodels::SEIRVModel. It takes vaccine allocation by age group (e.g., 30 relative uptakes for arbitrary age bins.
1 2 3 4 5 6 7 8 | getVaccineUptakeMultiplierFromAllocation(
ages,
population = flumodelsutil::flumodelsutil_data$population.US %>% dplyr::filter(YEAR
== year & MONTH == 1 & AGE != 999) %>% dplyr::select(AGE, TOT_POP),
year = 2015,
originalAllocation,
originalAllocationAges
)
|
ages |
Vector of ages. Each element represents the upper range of an age range. The lowest bound is presumed to be zero. If the oldest age does not reach the end of the population range, an additional element is added to span the full range. The final age bracket cannot start after the final bracket of originalContactMatrixAges. |
population |
Population data frame that contains age and population values. Defaults to 2015 US population. The two required columns of the data frame are AGE and TOT_POP |
year |
Year to sample population from. Defaults to 2015. |
originalAllocation |
Original allocation fraction of vaccine, by age group. |
originalAllocationAges |
Ages associated with originalAllocation. Must be in same format as ages. |
Vector of vaccine uptake multipliers.
Matt Clay <clay.matt@gmail.com>
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.