integration_adaptiveSSD: SSRT using integration method for studies with "adaptive"...

Description Usage Arguments Value Examples

View source: R/integration_adaptiveSSD.R

Description

Estimating SSRT using integration method for studies that use adaptive (increasing/decreasing by a given increment) stop-signal delays.

Usage

1
integration_adaptiveSSD(df, stop_col, rt_col, acc_col, ssd_col)

Arguments

df

Dataframe with response time, accuracy, indication whether trial is stop or go, and delays for a given trial.

stop_col

Name of the column in the dataframe df that indicates whether a given trial is a "stop" or a "go" trial ( 0 = go, 1 = stop)

rt_col

Name of the column in the dataframe df that contains response time in seconds

acc_col

Name of the column in the dataframe df that contains accuracy of inhibition ( 0 = incorrect, 1 = correct)

ssd_col

Name of the column in the dataframe df that contains stop-signal delays

Value

SSRT corresponding to the nth rt - ssd; n = p(respond|signal)*number of goRTs

Examples

1
2
3
data(adaptive)
sapply(split(adaptive, adaptive$new_id), integration_adaptiveSSD, stop_col = 'vol',
ssd_col = 'soa', rt_col = 'RT_exp', acc_col = 'correct')

SSRTcalc documentation built on April 19, 2021, 9:07 a.m.