Description Usage Arguments Value References Examples
Simulates an ideal population using the reference model from Tokars (2018).
1 | sim_reference(init_pop_size, vaccinations, infections_novac, ve, lag)
|
init_pop_size |
Integer initial population size |
vaccinations |
Integer vector number of vaccinations at every timepoint |
infections_novac |
Integer vector number of infections at every timepoint |
ve |
Vaccine effectiveness (proportion) |
lag |
Integer lag period measured in timepoints |
A tibble with the following columns:
timepoint |
Index of timepoint |
vaccinations |
Expected number of vaccinations |
infections_novac |
Expected number of infections in absence of vaccination |
ve |
Expected vaccine effectiveness |
pflu |
Flu incidence |
infections |
Actual number of infections |
popn |
Non-cases in absence of vaccination |
pvac |
Proportion of starting population vaccinated |
b |
Number vaccinated at that time who didn't get infected later |
b_og |
Number vaccinated at that time |
A |
Non-vaccinated non-cases |
C |
Vaccinated susceptible |
D |
Vaccinated immune |
E |
Non-vaccinated infections cumulative total |
F |
Vaccinated infections cumulative total |
Tokars JI, Rolfes MA, Foppa IM, Reed C. An evaluation and update of methods for estimating the number of influenza cases averted by vaccination in the United States. Vaccine. 2018;36(48):7331–7337. doi:10.1016/j.vaccine.2018.10.026
1 2 3 4 5 6 7 8 9 10 11 12 | # Population from Tokars (2018)
nsam <- 1e6L
ndays <- 304L
pop_tok <- sim_reference(
init_pop_size = nsam,
vaccinations = generate_counts(nsam, ndays, 0.55, mean = 100, sd = 50),
infections_novac = generate_counts(nsam, ndays, 0.12, mean = 190, sd = 35),
ve = 0.48,
lag = 14
)
head(pop_tok)
sum(pop_tok$avert)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.