Prepare vaccination data

spim_vaccination_data(
  date,
  region,
  uptake,
  days_to_effect,
  data,
  n_doses,
  dose_start_dates,
  carehomes = TRUE
)

Arguments

date

The date of the data. This will be the final date

region

The region that we are fitting to. This will either be one of the 10 NHS regions (one of sircovid::regions("all")), or an argument to that function (e.g., all)

uptake

A matrix of proportion uptake by age, with (i, j) th value being the uptake of dose j for group i. Must have 19 rows.

days_to_effect

A vector of the number of days each dose is assumed to take to reach effect

data

Vaccination data (TODO: DESCRIBE CONTENTS)

n_doses

Number of doses to include

dose_start_dates

A vector of the start dates for each dose. Any doses before the corresponding start date will be ignored

carehomes

Logical parameter, whether or not we have carehomes in the model. Default is TRUE

Value

A list suitable for passing to spim_pars as vaccination, containing the new vaccination schedule (important bits are efficacy and schedule, but other elements may be used elsewhere)