Saving the Data

Results will be saved automatically in the data folder under the main folder in three

formats: psydat, csv, and log.

Note: Whenever a program runs beyond the pop-up window (i.e., whenever you click OK), a result file will be saved. This is especially important to know if you encounter any issues while running the task and/or the program quits in the middle of the task, as a blank or incomplete result file will be saved.

In the result file, the relevant variables include:

In the happy/angry task:

1. Condition variables: identity, mean, set mean, variance, depth, X1 to X8

a. The mean variable saves the pre-determined mean value, which is drawn

from a Gaussian distribution with a mean of 25 and variance of 5, and the set

mean is the actual mean of X1 to X8 during each trial.

b. Depth will print either “checked” or “ALERT.” Checked suggests that within a 500-recursion limit, the set mean is within 5% of the pre-set mean value.

ALERT suggests that PsychoPy has reached the 500-recursion limit, and the

set mean still falls out of the 5% tolerance range.

2. Block variable: valence (i.e., whether it is a “hap” or “ang” block)

3. Outcome variables:

a. PsychoPy automatically saves

i. Key presses (i.e., keyHap.keys for happy blocks, and keyAng.keys for

angry blocks)

ii. All Timing of stimuli presentation and participant response (e.g.,

keyHap.rt and keyAng.rt for response time)

iii. For happy blocks, keyAng.keys and keyAng.rt will be coded as None,

vice versa

b. Accuracy is calculated as a binary value (0 or 1) and saved under the

accuracy variable for both blocks

In the happy&angry task:

1. Condition variables: identity, mean, set mean, variance, depth, X1 to X8

a. The mean variable saves the pre-determined mean value, which is drawn from a Gaussian distribution with a mean of 25 and variance of 5, and the set mean is the actual mean of X1 to X8 during each trial.

b. Depth will print either “checked” or “ALERT.” Checked suggests that within a 500-recursion limit, the set mean is within 5% of the pre-set mean value. ALERT suggests that PsychoPy has reached the 500-recursion limit, and the set mean still falls out of the 5% tolerance range.

4. Outcome variables:

a. PsychoPy automatically saves

i. Key presses (i.e., keyLeft.keys for negLeft blocks, and keyRight.keys for negRight blocks)

ii. All Timing of stimuli presentation and participant response (e.g., keyLeft.rt and keyRight.rt for response time)

iii. For negLeft blocks, keyRight.keys and keyRight.rt will be coded as None, vice versa

b. Accuracy is calculated as a binary value (0 or 1) and saved under the

accuracy variable for both blocks