Compares two classifiers across a range of FN:FP cost ratios (w)
to assess whether their Weighted Matthews Correlation Coefficient
(compute_wmcc) ranking is robust or flips at some crossover point, as
used in the sensitivity analyses of Madeyski, Kitchenham and Shepperd (2026). For each
value of w the WMCC of both classifiers is computed, the winner is recorded, and
(as a side effect) a short summary identifying the approximate crossover w is
printed.
a data frame with columns w, the WMCC of each classifier (named after
label_A and label_B), Winner and Gap (WMCC_A minus WMCC_B).
Arguments
TP_A, FP_A, FN_A, TN_A
the confusion matrix counts of classifier A.
TP_B, FP_B, FN_B, TN_B
the confusion matrix counts of classifier B.
label_A
a display name for classifier A (default "Model A").
label_B
a display name for classifier B (default "Model B").
w_range
a vector of w values to evaluate (default 1:20).
Author
Lech Madeyski
References
Lech Madeyski, Barbara Kitchenham, Martin Shepperd (2026). LLM4SCREENLIT:
Recommendations on assessing the performance of large language models for screening
literature in systematic reviews. Information and Software Technology, 198, 108204.
doi:10.1016/j.infsof.2026.108204.