Learn R Programming

FFTrees (version 1.5.3)

fftrees_threshold_factor_grid: Performs a grid search over factor and returns accuracy statistics for a given factor cue

Description

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

Usage

fftrees_threshold_factor_grid(
  thresholds = NULL,
  cue_v = NULL,
  criterion_v = NULL,
  directions = "=",
  sens.w = 0.5,
  cost.outcomes = list(hi = 0, fa = 1, mi = 1, cr = 0),
  cost.each = 0,
  goal.threshold = "bacc"
)

Arguments

thresholds

numeric. A vector of factor thresholds to consider

cue_v

numeric. Feature values

criterion_v

logical. Criterion values

directions

character. Character vector of threshold directions to consider.

sens.w

numeric.

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.

cost.each

numeric.

goal.threshold

character.