Diagnostic Odds Ratio
Binary classification measure defined as
(TP/FP) / (FN/TN).
dor(truth, response, positive, na_value = NaN, ...)
truth |
( |
response |
( |
positive |
( |
na_value |
( |
... |
( |
Performance value as numeric(1)
.
Type: "binary"
Range: [0, Inf)
Minimize: FALSE
Required prediction: response
This measure is undefined if FP = 0 or FN = 0.
set.seed(1) lvls = c("a", "b") truth = factor(sample(lvls, 10, replace = TRUE), levels = lvls) response = factor(sample(lvls, 10, replace = TRUE), levels = lvls) dor(truth, response, positive = "a")
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.