formula. A formula specifying a binary criterion as a function of multiple variables
data
dataframe. A dataframe containing variables in formula
goal
character. A string indicating the statistic to maximize: "acc" = overall accuracy, "bacc" = balanced accuracy, "wacc" = weighted accuracy, "d" = dprime
sens.w
numeric. A number from 0 to 1 indicating how to weight sensitivity relative to specificity.
numthresh.method
character. A string indicating how to calculate cue splitting thresholds. "m" = median split, "o" = split that maximizes the goal,
rounding
integer. An integer indicating digit rounding for non-integer numeric cue thresholds. The default is NULL which means no rounding. A value of 0 rounds all possible thresholds to the nearest integer, 1 rounds to the nearest .1 (etc.).
verbose
logical. A logical value indicating whether or not to print ongoing diagnostics
cue.rules
dataframe. An optional df specifying how to make decisions for each cue. Must contain columns "cue", "class", "threshold" and "direction"
Value
A dataframe containing best thresholds and marginal classification statistics for each cue