combineIATtwoblocks: Data analysis function: Collapses IAT permutations down prior...

View source: R/combineIATfourblocks.R

combineIATtwoblocksR Documentation

Data analysis function: Collapses IAT permutations down prior to cleaning and analysis (two-permutation version)

Description

This function is a variation of combineIATfourblocks() but using two permutations as inputs instead of four. Some users may opt to reduce the number of permutations of the IAT (e.g., fixing one category or target to the left side and the other to the right across participants). This was used in intial testing of iatgen and was retained should it be of interest.

Usage

combineIATtwoblocks(name1, name2)

Arguments

name1

A vector of responses representing a critical block (either compatible or incompatible) of trials for one of the IAT permutations.

name2

A vector of responses representing a critical block (either compatible or incompatible) of trials for the other IAT permutation.

Value

Returns a single vector of responses that contains all four permutations collapsed into one variable.

Examples

## Not run: 
### Example with only Target A on the right and Target B on the left  ####
dat$compatible <- combineIATtwoblocks(dat$Q4.RP4, dat$Q14.RN7)
dat$incompatible <- combineIATtwoblocks(dat$Q7.RP7, dat$Q11.RN4)

## End(Not run)

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