Learn R Programming

SSRTcalc (version 2.1.1)

integration_adaptiveSSD: Estimate SSRT via the integration method (adaptive / staircase SSD design)

Description

Implements the recommended integration method from Verbruggen et al. (2019). For each dataset:

  1. Compute p(respond|signal) from all stop trials.

  2. Find the nth percentile of the go-RT distribution (n = p_respond).

  3. Subtract the mean SSD: SSRT = nth_percentile_RT - mean(SSD).

Usage

integration_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.

References

Verbruggen, F., et al. (2019). A consensus guide to capturing the ability to inhibit actions and impulses: the stop-signal task. eLife, 8, e46323. tools:::Rd_expr_doi("10.7554/eLife.46323")

Examples

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

Run the code above in your browser using DataLab