powered by
Internal function to aggregate record-level data for plotting as a funnel.
aggregate_func(mod_plot)
Returns an aggregated data.frame of the same columns, but summed by 'group', with a relative risk 'rr' column added.
A data frame of values to be aggregated. Expected columns, 'group', 'numerator' and 'denominator'