Learn R Programming

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 a.g.leontiev@tamu.edu or a.g.leontiev@gmail.com

Copy Link

Version

Install

install.packages('SSRTcalc')

Monthly Downloads

122

Version

0.3.3

License

GPL-3

Maintainer

Anton Leontyev

Last Published

April 19th, 2021

Functions in SSRTcalc (0.3.3)

mean_fixedSSD

Estimating SSRT using mean method for studies that use fixed (randomly chosen on each trial from a pre-determined set) stop-signal delays
mean_adaptiveSSD

SSRT using mean method for studies with "adaptive" method of setting SSD
plotInhFunc

Plots and prints stop-signal delays and accuracies
fixed

Fixed-SSD dataset for stop-signal task
adaptive

Adaptive-SSD dataset for stop-signal task
integration_fixedSSD

SSRT using integration method for studies with "fixed" method of setting SSD
integration_adaptiveSSD

SSRT using integration method for studies with "adaptive" method of setting SSD