Calculates a score for adaptive threshold procedures

score_adaptivethreshold(
  x,
  taskname = "",
  adaptive_variable = "",
  scoring_method = "Last 4 Reversals"
)

Arguments

x

dataframe

taskname

string to add as a prefix to scored columns

adaptive_variable

the column name that represents the variable that is changing across the adaptive procedure (e.g., stimulus duration).

scoring_method

the scoring method to use. Default: Last 4 Reversals. Options are: Last n Reversals (substitute n for a digit, e.g., Last 4 Reversals. This represents the median of the last n reversals); Last Trial (the value of the adaptive variable on the last trial); All Reversals (median of all reversals); Overall Median (median across all trials)