Learn R Programming

FFTrees (version 1.7.0)

fftrees_threshold_numeric_grid: Perform a grid search over thresholds and return accuracy statistics for a given numeric cue

Description

Perform a grid search over thresholds and return accuracy statistics for a given numeric cue

Usage

fftrees_threshold_numeric_grid(
  thresholds,
  cue_v,
  criterion_v,
  directions = c(">", "

Value

A data frame containing accuracy statistics for several numeric thresholds.

Arguments

thresholds

numeric. A vector of thresholds to consider.

cue_v

numeric. Feature values.

criterion_v

logical. A logical vector of (TRUE) criterion values.

directions

character. Possible directions to consider.

sens.w

numeric. Sensitivity weight parameter (from 0 to 1, for computing wacc). Default: sens.w = .50.

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, 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.

goal.threshold

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

See Also

fftrees_threshold_factor_grid for factor cues.