Algorithms {AATtools}R Documentation

AAT score computation algorithms

Description

AAT score computation algorithms

Usage

aat_doublemeandiff(ds, subjvar, pullvar, targetvar, rtvar, ...)

aat_doublemediandiff(ds, subjvar, pullvar, targetvar, rtvar, ...)

aat_dscore(ds, subjvar, pullvar, targetvar, rtvar, ...)

aat_mediandscore(ds, subjvar, pullvar, targetvar, rtvar, ...)

aat_dscore_multiblock(ds, subjvar, pullvar, targetvar, rtvar, blockvar, ...)

aat_regression(ds, subjvar, formula, aatterm, ...)

aat_standardregression(ds, subjvar, formula, aatterm, ...)

aat_singlemeandiff(ds, subjvar, pullvar, rtvar, ...)

aat_singlemediandiff(ds, subjvar, pullvar, rtvar, ...)

Arguments

ds

A long-format data.frame

subjvar

Column name of the participant identifier variable

pullvar

Column name of the movement variable (0: avoid; 1: approach)

targetvar

Column name of the stimulus category variable (0: control stimulus; 1: target stimulus)

rtvar

Column name of the reaction time variable

...

Other arguments passed on by functions (ignored)

blockvar

name of the variable indicating block number

formula

A regression formula to fit to the data to compute an AAT score

aatterm

A character naming the formula term representing the approach bias. Usually this is the interaction of the movement-direction and stimulus-category terms.

Value

A data.frame containing participant number and computed AAT score.

Functions


[Package AATtools version 0.0.2 Index]