Perform a grid search over thresholds and return accuracy statistics for a given numeric cue
fftrees_threshold_numeric_grid(
thresholds,
cue_v,
criterion_v,
directions = c(">", "
A data frame containing accuracy statistics for several numeric thresholds.
numeric. A vector of thresholds to consider.
numeric. Feature values.
logical. A logical vector of (TRUE) criterion values.
character. Possible directions to consider.
numeric. Sensitivity weight parameter (from 0 to 1, for computing wacc
).
Default: sens.w = .50
.
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, respectively.
For instance, 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.
fftrees_threshold_factor_grid
for factor cues.