Tabulate cases for a condition by age and syndrome
calc_cc_by_age_syndrome( d, condition, syndrome_names, syndrome_values = NULL, specimen_types = NULL, sites = NULL )
d | A data object obtained from |
---|---|
condition | A string specifying the condition to tabulate causal chain
presence for. To list all possibilities, see
|
syndrome_names | A vector specifying conditions to tabulate
combinations of presence of for the given |
syndrome_values | An optional vector of the same length of
|
specimen_types | An optional vector of specimen types to include in the
calculation. If not provided, all specimen types will be used. See
|
sites | An optional vector of site names to include in the tabulation.
If not provided, all sites will be used. See |
calc_cc_by_age_syndrome(mock, condition = "Streptococcus pneumoniae", syndrome_names = c( "Lower respiratory infections", "Meningitis/Encephalitis", "Neonatal sepsis", "Congenital infection"), syndrome_values = c( "Pneumonia", "Meningitis", "Sepsis", "Sepsis") )