mean_fixedSSD: Estimate SSRT via the mean method (fixed SSD design)
Description
Computes SSRT as \(\bar{RT}_{go} - \bar{SSD}\). For multiple fixed SSD
values the mean is taken across all stop trials.
Usage
mean_fixedSSD(
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 codedata(fixed)
d <- fixed[fixed$SubjID == 1, ]
mean_fixedSSD(d)
Run the code above in your browser using DataLab