Description Usage Arguments Value Examples
View source: R/TB_decrease_as_matrix.R
From a vetor of assumed annual decreases in TB, this function constructs a matrix with yearly estimates of TB decrease
1 2 3 | TB_decrease_as_matrix(TB_decrease, TB_cohorts = c("15-19 years",
"20-24 years", "25-29 years"), data_start = 1969,
projected_cohort = 9, cohort_length = 5)
|
TB_decrease |
A named vector of percentage decreases (i.e 1%) in TB incidence. Names should refer to age group. |
TB_cohorts |
A character vector indicating the names of the cohorts modelled. Defaults to 15-19 years, 20-24 years, and 25-29 years. |
data_start |
Numeric, the year the first data point originates, defaults to 1969 as in Sutherland et al. |
projected_cohort |
Numeric, the number of cohort for which to simulate, defaults to 5. Combines with |
cohort_length |
Numeric, the lengh of time spent in each cohort, defaults to 5 years as in Sutherland et al. |
A matrix of annual TB incidence decreases as a percentage (0.01) for a given number of years and age groups
1 2 3 4 | TB_decrease <- c(10, 8, 11)
TB_decrease_as_matrix(TB_decrease)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.