Aggregate deprivation scores into higher-level geographies, calculating: - proportion of highly deprived areas - extent (proportion of the local population that live in the most deprived areas) - population-weighted average score
Arguments
- data
Data frame containing a variable to be aggregated, lower level geography population estimates, and a higher level geographical grouping variable
- score_col
Variable containing deprivation scores
- rank_col
Variable containing deprivation ranks
- decile_col
Variable containing deprivation deciles
- higher_level_geography
Name of the variable in the data frame containing the higher level geography names/codes
- population
Name of the variable in the data frame containing the population estimates of the lower level geography
