R/compute.R
calc_detected_allcases_by_site_age.RdTabulate the number of cases where the pathogen(s) are detected in TAC results in the context of all cases by site and by age
calc_detected_allcases_by_site_age( d, condition, pathogen, sites = NULL, specimen_types = NULL )
| d | A data object obtained from |
|---|---|
| condition | A string specifying the condition to tabulate causal chain
presence for. To list all possibilities, see |
| pathogen | A string specifying the pathogen to count positive cases of in the TAC results. |
| sites | An optional vector of site names to include in the tabulation.
If not provided, all sites will be used. See |
| specimen_types | An optional vector of specimen types to include in the
calculation. If not provided, all specimen types will be used. See
|
specimen_types <- c( "Cerebrospinal fluid sample", "Tissue specimen from lung", "Whole blood", "Rectal swab", "Plasma or spun blood specimen" ) calc_detected_allcases_by_site_age(mock, condition = "Streptococcus agalactiae", pathogen = "Group B Streptococcus", specimen_types = specimen_types)