plotInhFunc: Plots and prints stop-signal delays and accuracies

Description Usage Arguments Value Examples

View source: R/plotInhFunc.R

Description

Plots and prints stop-signal delays and corresponding accuracies. For studies that use fixed (randomly chosen on each trial from a pre-determined set) stop-signal delays.

Usage

1
plotInhFunc(df, stop_col, ssd_col, acc_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)

ssd_col

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

acc_col

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

Value

Line plot of the inhibition function.

Examples

1
2
3
data(fixed)
df <- subset(fixed, new_id == 3)
plotInhFunc(df = df, stop_col='vol', ssd_col='soa', acc_col='acc')

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