Learn R Programming

IAT (version 0.3)

plotIndVar: Plot individual variability in the IAT

Description

Plot mean participant reaction time with 95% confidence intervals to see how reaction time varies by participant. The data is automatically cleaned (i.e., no error trials, trials with RT > 10000 or < 180 are deleted) to avoid over/underinflation of mean estimates and only includes trials from essential blocks.

Usage

plotIndVar(my_data, block_name, trial_blocks, session_id, trial_latency, trial_error)

Arguments

my_data
The raw dataframe to be used
block_name
A string of the variable name for the blocks
trial_blocks
A vector of the four essential blocks in the seven-block IAT (i.e., B3, B4, B6, and B7).
session_id
A string of the variable name identifying each unique participant.
trial_latency
A string of the variable name for the latency of each trial.
trial_error
A string of the variable name identifying whether a trial was an error or not (1 = error)