Learn R Programming

FFTrees (version 1.8.0)

fftrees_threshold_factor_grid: Perform a grid search over factor and return accuracy statistics for a given factor cue

Description

Perform a grid search over factor and return 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"
)

Value

A data frame containing accuracy statistics for several factor thresholds

Arguments

thresholds

numeric. A vector of factor thresholds to consider.

cue_v

numeric. Feature/cue values.

criterion_v

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

directions

character. Character vector of threshold directions to consider.

sens.w

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

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.

cost.each

numeric.

goal.threshold

character.

See Also

fftrees_threshold_numeric_grid for numeric cues.