Age grouping function creates standard population weights for user selected age groups. Allows for flexible age groups selection in smr, rii and st_rate functions. Internal use only.
age_grouping(age_group, st_pop, min_age, n_age)
character string of age groups for which the results are to be provided.
standard population weights to use.
minimum age group (to check if it is 0 or 0-4).
number of age groups.
A small data frame of weights for user selected age groups.