Practical 6 worksheet
The Stroop effect is one of the most robust findings in psychological science. In a standard visual Stroop task, participants are presented a sequence of stimuli in the form of colourful words and are instructed to respond by naming the colour in which the given stimulus is presented. One stimulus-response pair is called a trial.
The present study investigated the visual Stroop effect. Participants were allocated into one of two conditions, either “congruent” or “incongruent”. Each participants was then presented with two blocks of trials. The first block – the “non-colour-word” block – the stimuli presented were not colour words. The task was to name the colour in which the stimuli are displayed as quickly and accurately as possible. The task looks something like this:
The second block – the “colour-word” block – differed based on the condition (group) to which the given participant was allocated. In the “congruent” condition, the stimuli were colour-words and the colour in which they were displayed agreed with the meaning of the word. Again, the task was to name the colour as quickly and accurately as possible. This is what the condition looks like:
In the “incongruent” condition, the colour in which the words were displayed was not the same as the meaning of the stimuli. The task was the same. This is what it looks like:
Reaction time on each trial was recorded in milliseconds as was whether or not participant’s response was correct. If no response was recorded within 3 seconds, an incorrect response was recorded and the next trial was presented.
You were called upon to analyse the data and decide whether or not there is a difference between reaction times on congruent vs incongruent trials. You should only consider correct responses on the colour-word trials, excluding any improbably fast responses (less than 200ms).
The dataset is available at https://and.netlify.app/datasets/stroop.csv
Varaible name | Content | Notes |
---|---|---|
id |
Unique participant number | |
block |
Non-colour-words (0) vs colour-words (1) | Within-subjects variable |
group |
Congruent (0) vs Incongruent condition | Between-groups variable |
trial |
Trial number | |
correct |
Correct (1) or incorrect (0) response on the trial | |
rt |
Reaction time in milliseconds |
Drawing on the information above, complete the following tasks:
Create a new R Markdown document in your week_06
project folder.
Use a combination of code chunks with R
code and body text to complete the remaining tasks.
Formulate the statistical null and alternative hypotheses.
\[H_0:\ ...\]
\[H_1:\ ...\]
Read in the data.
Familiarise yourself with the data set.
How many variables are there?
Data from how many participants are included in the dataset?
How many trials did each participant complete per block?
What proportion of trials were responded to incorrectly (including non-responses)?
Assuming a trial automatically ends after 3 seconds, how many trials recorded no response?
Convert the block
and group
variables into factors and give them labels according to the codebook above.
Remove data you don’t need but make a note of how many observations you’re removing and for what reasons.
Create a tibble with mean reaction time per participant.
Visualise the distribution of mean reaction times per participants for each of the two groups.
Create a well-formatted table of the following descriptive statistics per group:
The table should have informative column names and a caption.
Create an appropriate statistical model to test your hypothesis.
Report on any excluded data. How many observations did you exclude and for what reason?
Report the results in accordance with the APA guidelines.
Visualise the results in a publication-quality errorbar plot.
What do you conclude about your hypothesis based on your analysis?
Knit your .Rmd
file into a formatted HTML document. Make sure it looks good and that there are no markdown rendering issues.
Well done!
If you successfully completed all the tasks, you’re ready to do the TAP.