Practical 6 worksheet

Instructions

This is a marked worksheet that contains 7 questions. The questions cover topics from last week's lectures and skills lab, and the tutorial you just completed. Before you begin the worksheet, you should first read these instructions and complete the analyses described in "Analysis", below.

You will have 7 randomly selected questions to answer; do not be surprised if you have different questions from others working on the same worksheet!

To access the worksheet, you must attend your practical session. In the session, a passcode will be announced to unlock the worksheet; you must begin the worksheet within 5 minutes of the passcode being released. You will have 30 minutes to complete the worksheet, unless you have reasonable adjustments for extra time (38 minutes for 25% extra time, and 45 minutes for 50% extra time).


Academic Honesty

You are welcome to use module resources - e.g. lecture slides, tutorials, skills labs scripts - to answer these questions. You are also welcome to use RStudio to solve problems, do calculations, or refer to output. However, you should not work with other students while you are completing the worksheet, and tutors will only be able to answer questions about technical problems (e.g. computer crash).

Background

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.

Study design

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:

Click to start/stop
+

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:

Click to start/stop
+

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:

Click to start/stop
+

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).

Data

The dataset is available at https://and.netlify.app/datasets/stroop.csv

Codebook

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

Tasks

Drawing on the information above, complete the following tasks:

Setting up

Task 1

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.

Hypotheses

Task 2

Formulate the statistical null and alternative hypotheses.

\[H_0:\ ...\]

\[H_1:\ ...\]

Data inspection

Task 3

Read in the data.

Task 4

Familiarise yourself with the data set.

Task 4.1

How many variables are there?

Task 4.2

Data from how many participants are included in the dataset?

Task 4.3

How many trials did each participant complete per block?

Task 4.4

What proportion of trials were responded to incorrectly (including non-responses)?

Task 4.5

Assuming a trial automatically ends after 3 seconds, how many trials recorded no response?

Data cleaning and wrangling

Task 5

Convert the block and group variables into factors and give them labels according to the codebook above.

Task 6

Remove data you don’t need but make a note of how many observations you’re removing and for what reasons.

Task 7

Create a tibble with mean reaction time per participant.

Descriptives

Task 8

Visualise the distribution of mean reaction times per participants for each of the two groups.

Task 9

Create a well-formatted table of the following descriptive statistics per group:

The table should have informative column names and a caption.

Analysis

Task 10

Create an appropriate statistical model to test your hypothesis.

Task 11

Report on any excluded data. How many observations did you exclude and for what reason?

Task 12

Report the results in accordance with the APA guidelines.

Task 13

Visualise the results in a publication-quality errorbar plot.

Task 14

What do you conclude about your hypothesis based on your analysis?

Output

Task 15

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.