R/sim_cohort_vac_cam.R
sim_cohort_vac_cam.Rd
This function identifies those that are eligible for vaccination programs and tracks their age specific incidence over years since vaccination. It does this by,
Produces a data set with year of eligibility as a variable
Does this for both the universal and targeted schemes
Adds a variables for years since entry to scheme - both universal and targetted
Adds a flag for before or after policy change (i.e 2005 switch)
sim_cohort_vac_cam(df, eligib_vector, campaign, policy_change_yr = 2005)
df | A dataframe |
---|---|
eligib_vector | Numeric year identifying eligibility. |
campaign | A character string identifying the name of the campaign. |
policy_change_yr | Numeric year identifying the year of the policy change. |
A simulate cohort for a given vaccination program correctly formatted as a retrospective cohort.