powered by
Calculate the difference in the mean of the metric for two groups
get_difference(sub_data, group_name, metric)
numeric difference in the average metric between the two groups
subset of the merged performance data frame for two groups
name of column with group variable
metric to compare
Courtney Armour, armourc@umich.edu
if (FALSE) { df <- dplyr::tibble( condition = c("a", "a", "b", "b"), AUC = c(.2, 0.3, 0.8, 0.9) ) get_difference(df, "condition", "AUC") }
Run the code above in your browser using DataLab