as_vaccination_calendar | R Documentation |
Helper function to create (valid) vaccination calendars. It will take the given data, do some sanity checking and convert it into a list object that can be passed to other functions.
as_vaccination_calendar(efficacy = NULL, dates = NULL, coverage = NULL, legacy = NULL, no_risk_groups = NULL, no_age_groups = NULL, starting_year = NULL)
efficacy |
Vector holding the vaccine efficacy for each age group and risk group |
dates |
Vector containing the dates at which the coverage was measured. |
coverage |
Data frame with the fraction of coverage for each age and risk group in each column. Different rows are the different dates of measurements |
legacy |
An optional legacy object to convert. When passed a legacy object this function will sanity check the given object |
no_risk_groups |
The total number of risk groups (optional) |
no_age_groups |
The total number of age groups (optional) |
starting_year |
The year of the start of the season. Only used when passed a legacy file |
A list that contains the calendar
and efficacy
of the vaccine for that year
http://blackedder.github.io/flu-evidence-synthesis/vaccination.html
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.