FFTrees (version 1.4.0)

Add_Stats: Adds decision statistics to a dataframe containing hr, cr, mi and fa

Description

Adds decision statistics to a dataframe containing hr, cr, mi and fa

Usage

Add_Stats(data, sens.w = 0.5, cost.each = NULL, cost.outcomes = list(hi =
  0, fa = 1, mi = 1, cr = 0))

Arguments

data

dataframe. With named (integer) columns hi, cr, mi, fa

sens.w

numeric. Sensitivity weight

cost.each

numeric. An optional fixed cost added to all outputs (e.g.; the 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 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.