Exports a list containing
a data.frame with stimulus-specific bias scores, indicated in the column names,
a covariance matrix of that same data, and
a data.frame indicating to which stimulus category each stimulus belongs.
Arguments
ds
the data.frame to use
subjvar
Name of the subject-identifying variable
stimvar
Name of the stimulus-identifying variable
pullvar
Name of the movement-direction identifying variable
targetvar
Optional. Name of the stimulus-category identifying variable
rtvar
Name of the reaction-time identifying variable
aggfunc
The function with which to aggregate the RTs before computing difference scores. Defaults to mean but can be changed to median.
iters
If there are missing values (which is almost inevitable) then
multiple imputation will be used to complete the covariance matrix - this argument sets
the number of multiple imputations to be used.