R version 4.6.0 alpha (2026-03-28 r89738 ucrt) Copyright (C) 2026 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > library(testthat) > library(clinicalfair) > test_check("clinicalfair") -- Fairness evaluation data n = 50 | prevalence = 0.2 Groups: "X, Y" Reference: "Y" | Threshold: 0.5 -- Fairness Report Reference group: "Black" ! 3 disparity flag(s): White / selection_rate: ratio = 0.51 White / tpr: ratio = 0.635 White / fpr: ratio = 0.262 3 metric(s) violate the four-fifths rule (ratio outside [0.8, 1.25]). Consider threshold adjustment or model recalibration. -- Threshold optimization (equalized_odds) Black: threshold = 0.58 White: threshold = 0.42 Accuracy: 0.794 -> 0.808 [ FAIL 0 | WARN 0 | SKIP 0 | PASS 38 ] > > > proc.time() user system elapsed 2.89 0.37 3.23