View source: R/combineIATfourblocks.R
combineIATtwoblocks | R Documentation |
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.
combineIATtwoblocks(name1, name2)
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. |
Returns a single vector of responses that contains all four permutations collapsed into one variable.
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.