relative_risk
returns of list of four items.
"relative_risk" a data.frame that has the relative risk estimate and confidence intervals.
"percentage" a data.frame with absolute percentages.
"GROUP" a copy from the original safety_summary
object.
"reference" naming the reference group used to calculate relative risks
No adjustment made to deal with zeroes. This is suitable input for the dot_plot
function, and in most cases will not be
used directly, but may potentially be modified with filtration, or editing of terms, see order_filter
.
relative_risk_table
returns a data frame that is suitable for printing to a report, giving relative risks
order_filter
returns a revised relative risk object, with the terms concatenated with SOC if there are any duplicates,
then ordered by relative risk, into a factor, and filtered to only those terms with an incidence rate above
the threshold.