Balanced accuracy (for 2 or more groups)

measure_bac(truth, response)

Arguments

truth

a vector with true (reference) values

response

a vector with response (predicted) values

See also

Other measures_: measure_bac_2gr(), measure_tn(), measure_tpr(), measure_tp()