Case counts stratified by the required variables. In addition this function adds additional grouping variables for age so that the ETS data is inline with other demographic datasets.
extract_case_counts(df, strat_var = c("age", "year", "ukborn"))
df | A dataframe in the current ETS format . |
---|---|
strat_var | Vaiables to stratify case counts by. |
Case counts stratified by the required variables