aggregate_func: Aggregation function for record-level data, prior to plot.

Description Usage Arguments Value

View source: R/aggregate_func.R

Description

Internal function to aggregate record-level data for plotting as a funnel.

Usage

1
aggregate_func(mod_plot)

Arguments

mod_plot

A data frame of values to be aggregated. Expected columns, 'group', 'numerator' and 'denominator'

Value

Returns an aggregated data.frame of the same columns, but summed by 'group', with a relative risk 'rr' column added.


FunnelPlotR documentation built on Sept. 30, 2021, 5:07 p.m.