Calculate proportion of small areas in the higher-level geography that are within the 10% most deprived areas in the nation.
calculate_proportion.Rd
Calculate proportion of small areas in the higher-level geography that are within the 10% most deprived areas in the nation.
Arguments
- data
Data frame containing a variable to be aggregated and a higher level geographical grouping variable
- var
Name of the variable in the data frame for which you want to calculate proportions. It must have only two possible values
- higher_level_geography
Name of the variable in the data frame containing the higher level geography names/codes