calculate_incidences: Calculate the incidence of primary, secondary, tertiary and...

Description Usage Arguments Value Examples

View source: R/calculating_R0.R

Description

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.

Usage

1
calculate_incidences(FOI, u_lim, l_lim)

Arguments

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.

Value

A list containing four different numeric vectors with the incidence of primary, secondary, tertiary and quaternary infections in each age group.

Examples

 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)

mrc-ide/drep documentation built on Jan. 6, 2020, 11:06 p.m.