Prepare Dot plot data for exposure-adjusted rates

prepare_dot_data_exp_adj(data)

Arguments

data

(data.frame) Effects table

Value

data frame for specified type of analysis

Examples

dot_plot_src <- subset(effects_table, !is.na(Rate_Type))
dot_plot_data <- prepare_dot_data_exp_adj(dot_plot_src)
#> [2024-08-25 14:26:20] > Prepare Dot plot data for exposure-adjusted rates
head(dot_plot_data)
#>    rate treatment   type factor                  outcome group
#> 1 0.750    Drug A Binary   Risk Reoccurring AE EventRate     1
#> 2 0.300    Drug A Binary   Risk         Rare SAE IncRate     2
#> 3 0.015    Drug A Binary   Risk            Liver IncRate     3
#> 4 0.350    Drug B Binary   Risk Reoccurring AE EventRate     4
#> 5 0.300    Drug B Binary   Risk         Rare SAE IncRate     5
#> 6 0.010    Drug B Binary   Risk            Liver IncRate     6