Learn R Programming

mikropml (version 1.6.1)

get_difference: Calculate the difference in the mean of the metric for two groups

Description

Calculate the difference in the mean of the metric for two groups

Usage

get_difference(sub_data, group_name, metric)

Value

numeric difference in the average metric between the two groups

Arguments

sub_data

subset of the merged performance data frame for two groups

group_name

name of column with group variable

metric

metric to compare

Author

Courtney Armour, armourc@umich.edu

Examples

Run this code
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