FFTrees (version 1.4.0)

threshold_numeric_grid: Performs a grid search over thresholds and returns accuracy statistics for a given numeric cue

Description

Performs a grid search over thresholds and returns accuracy statistics for a given numeric cue

Usage

threshold_numeric_grid(thresholds, cue.v, criterion.v, directions = c(">",
  "

Arguments

thresholds

numeric. A vector of thresholds to consider

cue.v

numeric. Feature values

criterion.v

logical. Criterion values

directions

character. Possible directions to consider

sens.w

numeric.

cost.each

numeric. Cost to add to each value (e.g.; cost of the cue)

cost.outcomes

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.

goal.threshold

character. A string indicating the statistic to maximize when calculting cue thresholds: "acc" = overall accuracy, "wacc" = weighted accuracy, "bacc" = balanced accuracy