Data-projects-with-R-and-GitHub

Project Description

This project will use publicly available behavioral data from Kalbe & Schwabe (2022), which investigated how emotional experiences influence memory. To do so they looked at the memory performance of the participants, operationalised as corrected recognition. The unprocessed data can be found here, the preprocessed data which you will use, can be found in the folder project-data.

In the study participants were presented with a series of initially neutral stimuli. The presented stimuli were images of animals and tools. One category of images was paired with an aversive event (electric shock), while the other category was not. The category associated with the electric shock was categorized as CS*+ (conditioned category, CSm), the other category as *CS− (CSm).

The purpose of this pairing was to see if the association with the shock would affect the participants’ memory for the images. This kind of experimental design helps to understand hoe emotional experiences can influence memory.

About the Data

The preprocessed data are saved as .csv files. You can find a .csv file for each experiment separately in the above mentioned folder project-data.

Data for experiment 1, Data for experiment 2, Data for experiment 3, Data for experiment 4

Variables:

Data Manipulation

  1. Read the data into your local R environment

    • Read the files into R using the read_csv() function from the readr package, which is part of the tidyverse package. Note: To avoid reading every file separately you can read them all at once. to do so you have to save the folders directory path as a variable. After that you can list and filter the .csv files.
    • If you pool the four experiments into one keep in mind that the participants IDs starts from 1 for each of the four experiments. If you simply merge the files into one, you will e.g. have participant no. 1 four times. To avoid this duplication a continuous count is needed.
  2. Compute corrected recognition scores and save them as a new variable (e.g. “cr”)

    • Corrected recognition is computed by subtracting false alarms from hits. To do so you need the variables ‘hit’ and ‘fa’

    • Add the computed value as a new variable to the data table

Visualization

Your plotting task is to recreate Figure 3 of the original paper. This is Figure 3 from Kalbe & Schwabe
(2022)

Optional

Here you can find the published paper from Kalbe & Schwabe (2022).