prepare_tradeoff_data.Rd
Prepare data for the tradeoff plot
prepare_tradeoff_data(
data,
filter,
category,
benefit,
risk,
ci_method,
cl,
type_risk,
type_graph
)
(data.frame
) dataset
(character
) selected filter
(character
) selected category
(character
) selected benefit outcome
(character
) selected risk outcome
(character
) selected method to display
confidence intervals
(numeric
) confidence level
(character
) selected way to display risk outcomes
(crude proportions, Exposure-adjusted rates (per 100 PYs))
(character
) selected way to display binary outcomes
(Absolute risk, Relative risk, Odds ratio)
df_br (data.frame
) benefit/risk metrics for all treatment given
the selected benefit (respectively risk) outcome
DETAILS