Description Usage Arguments Value Examples
View source: R/calculating_R0.R
calculate_incidences
calculates the per-capita incidence rates of primary,
secondary, tertiary and quaternary dengue infections in individuals of a
particular age group, given a force of infection.
1 | calculate_incidences(FOI, u_lim, l_lim)
|
FOI |
The force of infection value. Numeric. |
u_lim |
A numeric vector of the upper age limits of the population age groups. |
l_lim |
A numeric vector of the lower age limits of the population age groups. |
A list containing four different numeric vectors with the incidence of primary, secondary, tertiary and quaternary infections in each age group.
1 2 3 4 5 6 7 8 9 10 11 | #Assumes human population divided in 5-year age groups and 20 age groups
age_groups <- 20
# a force of infection value
a_FOI_value <- 0.031
# the lower limits of the age groups
a <- seq(0, 95, length.out = age_groups)
# the upper limits of the age groups
b <- seq(5, 100, length.out = age_groups)
# run
calculate_incidences(a_FOI_value, a, b)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.