Performs a grid search over thresholds and returns accuracy statistics for a given numeric cue
threshold_numeric_grid(thresholds, cue.v, criterion.v, directions = c(">",
"
numeric. A vector of thresholds to consider
numeric. Feature values
logical. Criterion values
character. Possible directions to consider
numeric.
numeric. Cost to add to each value (e.g.; cost of the cue)
list. A list of length 4 with names 'hi', 'fa', 'mi', and 'cr' specifying the costs of a hit, false alarm, miss, and correct rejection rspectively. E.g.; cost.outcomes = listc("hi" = 0, "fa" = 10, "mi" = 20, "cr" = 0)
means that a false alarm and miss cost 10 and 20 respectively while correct decisions have no cost.
character. A string indicating the statistic to maximize when calculting cue thresholds: "acc" = overall accuracy, "wacc" = weighted accuracy, "bacc" = balanced accuracy