MyNixOS website logo
Description

Compute Scores for Different Implicit Measures.

A tool for computing the scores for the Implicit Association Test (IAT; Greenwald, McGhee & Schwartz (1998) <doi:10.1037/0022-3514.74.6.1464>) and the Single Category-IAT (SC-IAT: Karpinski & Steinman (2006) <doi:10.1037/0022-3514.91.1.16>). Functions for preparing the data (both for the IAT and the SC-IAT), plotting the results, and obtaining a table with the scores of implicit measures descriptive statistics are provided.

implicitMeasures

R package for computing different Implicit Measures scores

BuildStatus

Aim and Overview

The implicitMeasures package aims at providing a tool for easily computing the scores for the Implicit Association Test [IAT; Greenwald, McGhee, and Schwartz (1998)] and the Single Category Implicit Association Test [SC-IAT; Karpinski and Steinman (2006)].

Six different algorithms for the computation of the IAT effect, the so-called D score, are available (Greenwald, Nosek, and Banaji 2003). The six algorithms differentiate themselves according to how extreme fast responses and error responses are treated. Different mistakes can be made during the computation of the D score. Moreover, many researchers fail to report the exact algorithm they have used for computing the D score. Consequently, the replicability of the results might be compromised (Ellithorpe, Ewoldsen, and Velez 2015).

implicitMeasures includes the following functions:

  • clean_iat(): Prepare and clean the IAT data.
  • clean_sciat(): Prepare and clean the SC-IAT data.
  • compute_iat(): Compute the IAT D score.
  • compute_sciat(): Compute the SC-IAT D score.
  • descript_d(): Descriptive table of the D scores (also in LaTeX).
  • d_density(): Plot IAT or SC-IAT scores (distribution).
  • d_point(): Plot IAT or SC-IAT scores (points).
  • multi_dscore(): Compute and plot multiple IAT D scores.
  • multi_dsciat(): Plot SC-IAT D scores.
  • IAT_rel(): computes the IAT reliability (Gawronski et al. 2017)

All the functions for the graphical representation of the results are based on ggplot2 (Wickham 2016), and can be further customized by the users.

Installation

You can install the released version of implicitMeasures from CRAN with:

install.packages("implicitMeasures")

and the development version from GitHub with:

# install.packages("devtools") # un-comment to install devtools
devtools::install_github("OttaviaE/implicitMeasures")

Example

This is a basic example which shows you how to compute the IAT D score. More detailed examples are illustrated in the package vignettes.

library(implicitMeasures)
# load the raw_data dataframe
data("raw_data")

# prepare the dataset for the computation
iat_data <- clean_iat(raw_data, 
                          sbj_id = "Participant",
                          block_id = "blockcode",
                          mapA_practice = "practice.iat.Milkbad",
                          mapA_test = "test.iat.Milkbad",
                          mapB_practice = "practice.iat.Milkgood",
                          mapB_test = "test.iat.Milkgood",
                          latency_id = "latency",
                          accuracy_id = "correct",
                          trial_id = "trialcode",
                          trial_eliminate = c("reminder", "reminder1"))

# store the dataset for computing the D-score
iat <- iat_data[[1]]

# Compute the D-score
dscore <- compute_iat(iat, D = "d3")

The compute_iat() function results in a data frame with class dscore. This data frame can be passed to other functions, for example for plotting the results, either at the individual level:

Graphical representation of respondents' individual scores

or at the sample level:

Density distribution of sample scores

Data import

You can import your data in any format you want. If you import data sets from SPSS, please use either haven::read_sav("~/path/to/mydata.sav") or foreign::read.spss("~/path/to/mydata.sav") without changing the default options of the functions. The implicitMeasures package recognizes that the data frame is coming from SPSS and handles it.

Bugs and problems

If you find any bugs or encounter any problems in using this package, please post a minimal reproducible example on github. For questions and other discussions, you can contact the author and maintainer of the package at [email protected].

Contributing to implicitMeasures

If you want to contribute to implicitMeasures, by all means! You can open a new branch on https://github.com/OttaviaE/implicitMeasures, modify the code, and submit your pull request for added features.

Acknowledgments

A special thank to Filippo Gambarota.

References

Ellithorpe, Morgan E, David R Ewoldsen, and John A Velez. 2015. “Preparation and Analyses of Implicit Attitude Measures: Challenges, Pitfalls, and Recommendations.” Communication Methods and Measures 9 (4): 233–52. https://doi.org/10.1080/19312458.2015.1096330.

Gawronski, Bertram, Mike Morrison, Curtis E Phills, and Silvia Galdi. 2017. “Temporal Stability of Implicit and Explicit Measures: A Longitudinal Analysis.” Personality and Social Psychology Bulletin 43 (3): 300–312. https://doi.org/10.1177/0146167216684131.

Greenwald, Anthony G, Debbie E McGhee, and Jordan L K Schwartz. 1998. “Measuring Individual Differences in Implicit Cognition: The Implicit Association Test.” Journal of Personality and Social Psychology 74 (6): 1464–80. https://doi.org/10.1037/0022-3514.74.6.1464.

Greenwald, Anthony G, Brian A Nosek, and Mahzarin R Banaji. 2003. “<span class="nocase">Understanding and Using the Implicit Association Test: I. An Improved Scoring Algorithm.” Journal of Personality and Social Psychology 85 (2): 197–216. https://doi.org/10.1037/0022-3514.85.2.197.

Karpinski, Andrew, and Ross B. Steinman. 2006. “The Single Category Implicit Association Test as a measure of implicit social cognition.” Journal of Personality and Social Psychology 91 (1): 16–32. https://doi.org/10.1037/0022-3514.91.1.16.

Wickham, Hadley. 2016. ggplot2: Elegant Graphics for Data Analysis. Springer-Verlag New York. https://ggplot2.tidyverse.org.

Metadata

Version

0.2.1

License

Unknown

Platforms (75)

    Darwin
    FreeBSD
    Genode
    GHCJS
    Linux
    MMIXware
    NetBSD
    none
    OpenBSD
    Redox
    Solaris
    WASI
    Windows
Show all
  • aarch64-darwin
  • aarch64-genode
  • aarch64-linux
  • aarch64-netbsd
  • aarch64-none
  • aarch64_be-none
  • arm-none
  • armv5tel-linux
  • armv6l-linux
  • armv6l-netbsd
  • armv6l-none
  • armv7a-darwin
  • armv7a-linux
  • armv7a-netbsd
  • armv7l-linux
  • armv7l-netbsd
  • avr-none
  • i686-cygwin
  • i686-darwin
  • i686-freebsd
  • i686-genode
  • i686-linux
  • i686-netbsd
  • i686-none
  • i686-openbsd
  • i686-windows
  • javascript-ghcjs
  • loongarch64-linux
  • m68k-linux
  • m68k-netbsd
  • m68k-none
  • microblaze-linux
  • microblaze-none
  • microblazeel-linux
  • microblazeel-none
  • mips-linux
  • mips-none
  • mips64-linux
  • mips64-none
  • mips64el-linux
  • mipsel-linux
  • mipsel-netbsd
  • mmix-mmixware
  • msp430-none
  • or1k-none
  • powerpc-netbsd
  • powerpc-none
  • powerpc64-linux
  • powerpc64le-linux
  • powerpcle-none
  • riscv32-linux
  • riscv32-netbsd
  • riscv32-none
  • riscv64-linux
  • riscv64-netbsd
  • riscv64-none
  • rx-none
  • s390-linux
  • s390-none
  • s390x-linux
  • s390x-none
  • vc4-none
  • wasm32-wasi
  • wasm64-wasi
  • x86_64-cygwin
  • x86_64-darwin
  • x86_64-freebsd
  • x86_64-genode
  • x86_64-linux
  • x86_64-netbsd
  • x86_64-none
  • x86_64-openbsd
  • x86_64-redox
  • x86_64-solaris
  • x86_64-windows