Description
Easy SSRT Calculation.
Description
This is a collection of functions to calculate stop-signal reaction time (SSRT). Includes functions for both "integration" and "mean" methods; both fixed and adaptive stop-signal delays are supported (see appropriate functions). Calculation is based on Verbruggen et al. (2019) <doi:10.7554/eLife.46323.001> and Verbruggen et al. (2013) <doi:10.1177/0956797612457390>.
README.md
SSRTcalc
Tools to estimate stop-signal reaction time in R
Introduction
This package contains functions that allow for easy estimation of stop-signal reaction time (SSRT), obtained from stop-signal task experiments. For this package to work, the data has to be in the long format (i.e., each row represents one trial for one individual). It is possible to apply functions by an individual, if the results are in one big dataframe. For example:
sapply(split(df, df$SubjID), integration_adaptiveSSD, stop_col = 'vol',rt_col = 'RT_exp', acc_col = 'correct', ssd_col = 'soa')
NB: the package is in beta version.
Installation
Run the following in your R/RStudio console:
install.packages("devtools")
devtools::install_github("agleontyev/SSRTcalc")
Contact me
Any questions/concerns/suggestions are welcome. Contact me at [email protected] or [email protected].