prep_ReAL: Preparing Data for ReAL Model estimation

Description Usage Arguments Examples

View source: R/prepMPT.R

Description

This function allows you to prepare IAT data for the application of functions estimating ReAL model parameters.

Usage

1
2
3
4
prep_ReAL(data, Subject, TaskSwitch = NULL, Switch = 1,
  Repetition = 0, Trial = NULL, Compatibility, Compatible = 1,
  Incompatible = 2, StimulusCat, Correct, TargetCat1, TargetCat2,
  AttributeCat1, AttributeCat2)

Arguments

data

Dataframe containing all relevant columns (Subject, TaskSwitch, Trial, Compatibility, StimulusCat and Correct).

Subject

Name of the column containing the subject id.

TaskSwitch

Name of the column containing infomation about task switching.

Switch

Level of TaskSwitch coding task switchung.

Repetition

Level of TaskSwitch coding task repetition.

Trial

Name of the column containing the trial number.

Compatibility

Name of the column containing the compatibility of current key mapping.

Compatible

Level of Compatibility coding a compatible mapping.

Incompatible

Level of Compatibility coding an incompatible mapping.

StimulusCat

Name of the column containing the category of the current stimulus.

Correct

Name of the column containing accuracy of responses (0 = error, 1 = correct).

TargetCat1

Level of StimulusCat coding the first target category (i.e, flower)

TargetCat2

Level of StimulusCat coding the second target category (i.e, insect)

AttributeCat1

Level of StimulusCat coding the first attribute category (i.e, pleasant)

AttributeCat2

Level of StimulusCat coding the second attribute category (i.e, unpleasant)

Examples

1

AdrianJusepeitis/prepMPT documentation built on Aug. 21, 2021, 9:45 a.m.