integration_fixedSSD {SSRTcalc} | R Documentation |
SSRT using integration method for studies with "fixed" method of setting SSD
Description
Estimating SSRT using integration method for studies that use fixed (randomly chosen on each trial from a pre-determined set) stop-signal delays.
Usage
integration_fixedSSD(df, stop_col, rt_col, acc_col, ssd_col, ssd_list)
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 |
rt_col |
Name of the column in the dataframe |
acc_col |
Name of the column in the dataframe |
ssd_col |
Name of the column in the dataframe |
ssd_list |
List of stop-signal delays used in the experiment |
Value
SSRT corresponding to the nth rt - ssd; n = p(respond|signal)*number of goRTs
Examples
data(fixed)
sapply(split(fixed, fixed$new_id), integration_fixedSSD, stop_col = 'vol',acc_col ='acc',
rt_col = 'RT_exp', ssd_col = 'soa',ssd_list = c(0.1, 0.2,0.3, 0.4, 0.5, 0.6))