cleanIAT.noprac: Data analysis function: Cleans the IAT without Practice...

View source: R/cleanIAT.noprac.R

cleanIAT.nopracR Documentation

Data analysis function: Cleans the IAT without Practice Blocks

Description

A variant of cleanIAT(). Inputs and outputs are identical, except that this function accepts only two blocks. This can be used when practice blocks are omitted from the IAT.

Usage

cleanIAT.noprac(
  crit1,
  crit2,
  timeout.drop = TRUE,
  timeout.ms = 10000,
  fasttrial.drop = FALSE,
  fasttrial.ms = 400,
  fastprt.drop = TRUE,
  fastprt.percent = 0.1,
  fastprt.ms = 300,
  error.penalty = FALSE,
  error.penalty.ms = 600,
  inclusive.sd = TRUE
)

Arguments

crit1

A vector of that same kind of critical responses (e.g., compatible critical), one per participant.

crit2

A vector of that same kind of critical responses (e.g., incompatible critical), one per participant.

timeout.drop

(Required, set TRUE by default). Tells the procedure to drop trials over a certain duration; recommended by Greenwald et al. (2003).

timeout.ms

(Required if timeout.drop=TRUE; set to 10000 by default). Following the Greenwald et al. (2003), individual trials over 10000 ms are dropped (scored as missing). Ignored if timeout.drop=FALSE.

fasttrial.drop

(Required, set FALSE by default). Tells the procedure to drop trials under a certain duration. Not recommended but was validated by Greenwald et al. (2003) as an alternative to dropping fast participants.

fasttrial.ms

(Required if fasttrial.drop=TRUE; set to 400 ms by default). The threshold for fastprt.drop, above. Ignored if fastprt.drop=FALSE.

fastprt.drop

(Required, set TRUE by default). If enabled, follows Greenwald et al. (2003) in which participants who have more than 10 percent of responses (fastprt.percent = .10) faster than 300 ms (fastprt.ms=300) are dropped entirely.

fastprt.percent

(Required if fastprt.drop=TRUE; set to .10 by default). Set the proportion threshold for fastprt.drop, above. Ignored if fastprt.drop=FALSE.

fastprt.ms

(Required if fastprt.drop=TRUE; set to 300 ms by default). Sets the time threshold for for fastprt.drop, above. Ignored if fastprt.drop=FALSE.

error.penalty

(Required, set FALSE by default). Logical value stating whether an error penalty is added. This should be disabled if forced error correction was used in the IAT and enabled otherwise (Greenwald et al., 2003).

error.penalty.ms

(Required if error.penalty=TRUE; set to error.penalty.ms=600 by default). Following the D600 procedure, IAT errors are scored as the correct-trial block mean plus an error penalty of 600 ms. Can be manually set to any desired value. One can also use the 2SD penalty [Greenwald et al., 2003, p 214, right column] by setting error.penalty.ms="2SD". Ignored if error.penalty=FALSE.

inclusive.sd

Unused parameter.

Value

Returns a list containing several important elements.

See Also

See the help for cleanIAT().

Examples

## Not run: 
### Collapse  IAT critical blocks  down ####
clean <- cleanIAT.noprac(dat$compatible.crit, dat$incompatible.crit)

## End(Not run)

iatgen/iatgen documentation built on Oct. 23, 2023, 10:55 a.m.