perf_eval.Rd
This function calculates the false discovery rate and true positive rate based on selected variables, known null variables (negatives), and known non-null variables (positives).
perf_eval(selected, positives, negatives)
A numeric vector of length 2 containing: - `tpr`: The true positive rate. - `fdr`: The false discovery rate.
perf_eval(selected = c(1, 2, 3, 5), positives = 1:4, negatives = 5:10)
#> [1] 0.75 0.25