powered by
Estimating SSRT using integration method for studies that use fixed (randomly chosen on each trial from a pre-determined set) stop-signal delays.
integration_fixedSSD(df, stop_col, rt_col, acc_col, ssd_col, ssd_list)
Dataframe with response time, accuracy, indication whether trial is stop or go, and delays for a given trial.
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)
df
Name of the column in the dataframe df that contains response time in seconds
Name of the column in the dataframe df that contains accuracy of inhibition ( 0 = incorrect, 1 = correct)
Name of the column in the dataframe df that contains stop-signal delays
List of stop-signal delays used in the experiment
SSRT corresponding to the nth rt - ssd; n = p(respond|signal)*number of goRTs
nth rt - ssd; n = p(respond|signal)*number of goRTs
# NOT RUN { 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)) # }
Run the code above in your browser using DataLab