View source: R/shell_dataset.R
threemc_empirical_rates | R Documentation |
Takes the shell dataset with a row for every unique area ID, area name, year and circumcision age in survey data outputed by create_shell_dataset and returns the empirical circumcision rates for each row, aggregated to age groups from single ages. Also converts from wide format to long format.
threemc_empirical_rates(
out,
areas,
area_lev,
populations,
age_groups = c("0-4", "5-9", "10-14", "15-19", "20-24", "25-29", "30-34", "35-39",
"40-44", "45-49", "50-54", "54-59", "0+", "10+", "15+", "15-24", "10-24", "15-29",
"10-29", "15-39", "10-39", "15-49", "10-49")
)
out |
Shell dataset outputted by create_shell_dataset |
areas |
|
area_lev |
|
populations |
|
age_groups |
Age groups to aggregate by, Default: c("0-4", "5-9", "10-14", "15-19", "20-24", "25-29", "30-34", "35-39", "40-44", "45-49", "50-54", "54-59", "15-24", "10-24", "15-29", "10-29", "15-39", "10-39", "15-49", "10-49" ) |
create_shell_dataset
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.