Learn R Programming

SSRTcalc (version 2.1.1)

mean_adaptiveSSD: Estimate SSRT via the mean method (adaptive SSD design)

Description

Computes SSRT as the difference between mean go RT and mean SSD: $$SSRT = \bar{RT}_{go} - \bar{SSD}$$ This method is less accurate than the integration method but is included for comparison and historical compatibility.

Usage

mean_adaptiveSSD(
  data,
  stop_col = "vol",
  rt_col = "RT_exp",
  acc_col = "correct",
  ssd_col = "soa",
  min_rt = 50
)

Value

A single numeric value: the estimated SSRT in milliseconds.

Arguments

data

A data.frame with one row per trial.

stop_col

Column name for the stop-trial indicator (1 = stop, 0 = go). Default "vol".

rt_col

Column name for reaction time in ms. Default "RT_exp".

acc_col

Column name for accuracy (1 = correct). Default "correct".

ssd_col

Column name for stop-signal delay in ms. Default "soa".

min_rt

Minimum valid RT in ms; shorter responses are excluded as anticipations. Default 50.

Examples

Run this code
data(adaptive)
d <- adaptive[adaptive$SubjID == 1, ]
mean_adaptiveSSD(d)

Run the code above in your browser using DataLab