get_cohorts | R Documentation |
This function gets attack rates for a rolling cohort.
get_cohorts(
inf_history,
vac_history,
ages,
enrollment_start_year = 2000,
ncohorts = 10,
total_year_range,
length_study = 18,
write.file = FALSE,
file = "test"
)
inf_history |
sparse matrix of infection histories for each person |
vac_history |
sparse matrix of vaccination history for each person |
ages |
matrix of ages of each person for every year |
enrollment_start_year |
year for cohort enrollment to start (YYYY format) |
ncohorts |
number of cohorts to enroll |
total_year_range |
vector of years to run simulations over |
length_study |
number of years to follow each cohort |
write.file |
logical. if true, the infection histories and vaccination histories are written to the working directory |
file |
character string used as the prefix for the output file if write.file = TRUE |
data frame of attack rates within the cohort by year
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.