RobustScores(IATdata,
P1 = c("none", "fxtrim", "fxwins", "trim10", "wins10", "inve10"),
P2 = c("ignore", "exclude", "recode", "separate", "recode600"),
P3 = c("dscore", "gscore", "wpr90", "minid", "minid_t10", "minid_w10",
"minid_i10"),
P4 = c("nodist", "dist"), maxMemory = 1000,
verbose = TRUE)
subject
: (factor or coercible to factor). Univocally identifies a participant.
correct
: (logical). has value TRUE
or 1
if the trial was answered correctly, FALSE
or 0
otherwise.
latency
: (numeric). Response latency, in ms.
blockcode
: (factor or string). Can assume only two values, "pair1"
and "pair2"
. "pair1"
is for one critical block and "pair2"
is the other critical block.
praccrit
. (factor, optional). Can assume only two values, "prac"
is for practice combined categorization block and "crit"
is for critical combined categorization block. In a IAT with 60 trials for each double categorization block, the first 20 are sometimes administered as practice block, the other 40 as critical.
"none"
: Do nothing.
"fxtrim"
: Trim values < 400ms
"trim10"
: 10% trimming
"wins10"
: 10% winsorizing
"inve10"
: 10% inverse trimming (i.e., trim central values)
"ignore"
: Disregard the correct-error distinction, treat all the latencies as if they were correct latencies.
"exclude"
: Remove error latencies and consider only the correct ones.
"recode"
: Recode the error latencies with the M+2SD of correct latencies. In the computation of the M and of the SD, all correct latencies are considered that are < 10s.
"separate"
: Apply parameter P1 separately for correct and error latencies. Notice that for parameter 1 equal to "none", "fxtrim", and "fxwins", if P4 = "ignore" and P4 = "separate", the result is the same.)
"recode600"
: Recode the error latencies with the the mean of correct latencies + 600ms. In the computation of the Mean, all correct latencies are considered that are < 10s.
"dscore"
. Compute the Dscores as M pair2 - Mpair1 / pooled SD.
"gscore"
. Compute the Gscores, as shown in Nosek, Bar-Anan, Sriram, & Greenwald (2013).
"wpr90"
. Compute the scores based on the worst-performance-rule, which are the same as the Dscores, but instead of the mean, the 90th percentile is used in the numerator.
minid
. Compute the minidifferences, i.e., the differences between any latency in pair2 and any latency in pair1. Then compute the IAT scores as the Mean of the minidifferences, divided by their SD.
minid_t10
. Compute the 10% trimmed minidifferences, which are identical to the mididiffernces, but instead of the mean, the 10% trimmed mean is used.
"minid_w10"
Compute the 10% winsorized minidifferences, which are as the minidifferences, but instead of the mean, the 10% winsorized mean is used.
"minid_i10"
Compute the 10% inverse_trimmed minidifferences, which are as the minidifferences, but instead of the mean, the 10% inverse trimmed mean is used.
praccrit
in the IATdata
, or do not.
"nodist"
no distinction between practice and critical blocks. no distinction is made between practice and critical blocks and the IAT scores are computed using all trials together.
"dist"
compute the IAT scores as the average IAT score computed. the scores are computed on practice and critical blocks separately: the total score is then computedc as the average of the two IAT scores.
maxMemory
specifies the maximum size of this dataframe, in MB. This limit is respected by "slicing" the dataset and computing the scores separately for many subsets of participants. This can slow the computation a bit, but prevents RAM overflows.
TRUE
, Print the time at which several operations are performed.
p1342
indicates that parameter P1 has value 1 (i.e. "none"
), parameter P2 has value 3, i.e., recode
, parameter P3 has value 4 (i.e., "minid"
) and parameter P4 has value 2 (i.e. "dist"
). This naming convention was adopted to allow to immediately and precisely know what has been done by reading the name of the score.pxxxx
."nodist"
the whole dataset is given as input, for "dist"
the dataset is first split in two parts according to column praccrit
and then given in input.
"dist"
, the scores computed i the practice and critical blocks are averaged.
SplitHalf
, alg2param