R/compute.R
calc_syndrome_combinations.Rd
Tabulate syndrome combinations for a specified condition
calc_syndrome_combinations( 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_syndrome_combinations(mock, condition = "Streptococcus pneumoniae", syndrome_names = c( "Lower respiratory infections", "Meningitis/Encephalitis", "Neonatal sepsis", "Congenital infection"), syndrome_values = c( "Pneumonia", "Meningitis", "Sepsis", "Sepsis"), specimen_types = c( "Cerebrospinal fluid sample", "Tissue specimen from lung", "Whole blood") )