Package 'codepsych'

Title: CodePsych
Description: Example Psychology data sets for learning R.
Authors: Susan Buck [aut, cre]
Maintainer: Susan Buck <[email protected]>
License: GPL-3
Version: 0.0.0.9002
Built: 2026-05-21 05:58:11 UTC
Source: https://github.com/susanBuck/codepsych

Help Index


Stroop Task Reaction Time Data

Description

Simulated reaction time data from a Stroop-style task, intended for demonstration and teaching purposes in introductory psychology and data analysis courses.

Format

A data frame with 10,800 rows and 7 variables:

participant_id

Unique participant identifier

trial

Trial number within participant

condition

Trial condition: "congruent" or "incongruent"

word

Color word displayed (e.g., "red", "green", "blue")

color

Ink color of the word displayed

response

Key pressed by the participant: "r", "g", or "b"

response_time

Response time in milliseconds

Details

Each participant completed multiple trials in both congruent and incongruent conditions, responding to the ink color of color words while ignoring the word meaning.

Source

Simulated data distributed with course materials