Learn R Programming

FFTrees (version 1.1.3)

cuerank: Calculate the accuracy of all cues in a dataframe

Description

Calculate the accuracy of all cues in a dataframe

Usage

cuerank(cue.df = NULL, criterion.v = NULL, tree.criterion = "v", numthresh.method = "o", hr.weight = 0.5, rounding = NULL, verbose = F)

Arguments

cue.df
A dataframe of cue values
criterion.v
A logical vector of length m containing criterion values for exemplars in cue.df
tree.criterion
A string indicating how to rank cues. "v" = HR - FAR, "d" = d-prime.
numthresh.method
A string indicating how to calculate cue splitting thresholds. "m" = median split, "o" = split that maximizes the tree criterion.
hr.weight
A number between 0 and 1 indicating how much weight to give to increasing hit rates versus avoiding false alarms. 1 means maximizing HR and ignoring FAR, while 0 does the opposite. The default of 0.5 gives equal weight to both.
rounding
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
A logical value indicating whether or not to print ongoing diagnostics

Value

A list with two elements. The first, "cue.stats" is a dataframe containing the classification statistics for every possible cue threshold. The second element, cue.best, contains data for the best performing cue threshold