Tabulate top etiologies by specified age groups

calc_top_etiol_by_age(d, age_groups = NULL, sites = NULL)

Arguments

d

A data object obtained from load_data.

age_groups

Optional vector of age groups. See valid_age_groups.

sites

An optional vector of site names to include in the tabulation. If not provided, all sites will be used. See valid_sites.

Examples

calc_top_etiol_by_age(mock,
  age_groups = c(
    "Death in the first 24 hours",
    "Early Neonate (24-72 hours)",
    "Early Neonate (72+hrs to 6 days)",
    "Late Neonate (7 to 27 days)")
)