Return to the Psychological Refractory Period Task page
						
							PSYCHOLOGICAL REFRACTORY PERIOD TASK (PRP)
SCRIPT INFO

Script Author: Katja Borchert, Ph.D. (katjab@millisecond.com) for Millisecond Software, LLC
Date: 01-22-2013
last updated: 01-22-2016 by K.Borchert (katjab@millisecond.com) for Millisecond Software LLC

Copyright © 01-22-2016 Millisecond Software


BACKGROUND INFO

											*Purpose*
This script implements the Psychological Refractory Period (PRP) Task as described in:

Marczinski, C.A. &  Fillmore, M.T. (2006). Clubgoers and Their Trendy Cocktails: Implications of Mixing
Caffeine Into Alcohol on Information Processing and Subjective Reports of Intoxication. Experimental and Clinical 
Psychopharmacology, 14, 450–458.

Millisecond Software thanks Dr. Fillmore for graciously reviewing this script and giving us ample feedback!

											  *Task*
DUAL TASK;  temporally separated by randomly selected stimulus onset asynchronies (SOA).
Task1: 	go-nogo task. 
		Press the ENTER* key with your right hand (index finger) as soon as you see a "1" (go), 
		don't do anything with your right hand if you see an "X" (nogo)
		* original task used "1" key on numeric keypad
Task2: 	auditory discrimination task. 
		Press "a" with your left hand (middle finger) when you hear a high sound; 
		press "z" with your left hand (index finger) when you hear a low sound.

NOTE: The response to Task 1 (if one is given) should be given before response to Task 2 - as a response to 
task 2 terminates the trial.

A PRPInterferenceScore calculates the interference score by subtracting the mean rt times (task2) for maximum SOAs (low interference) 
from the mean rt times (task 2) for minimum SOAs (high interference). Incorrect responses (responses that were either incorrect for 
task 1 or task 2 or both) as well as responses that were faster than 100ms and slower than 2000ms were filtered out as recommended
by Dr. Fillmore.

DATA FILE INFORMATION: 
The default data stored in the data files are:

(1) Raw data file: 'PsychologicalRefractoryPeriod_raw*.iqdat' (a separate file for each participant)

build:							Inquisit build
computer.platform:				the platform the script was run on
date, time, subject, group:		date and time script was run with the current subject/groupnumber 
blockcode, blocknum:			the name and number of the current block
trialcode, trialnum: 			the name and number of the currently recorded trial
									(Note: not all trials that are run might record data; by default data is collected unless /recorddata = false is set for a particular trial/block) 
/ trialcount:						updates trial count
/ task1cat:						1 = go stimulus; 2 = nogo stimulus
/ task2cat:						1 = low stimulus; 2 = high stimulus
/ firsttaskresponse:			stores the response to the first task        
/ secondtaskresponse:			stores the response to the second task
/ firsttaskresponse_rt:			stores the reaction time (rt) in ms for the first response (since onset of task 1 stimulus)
/ secondtaskresponse_rt:		stores the reaction time in ms for the second response (since onset of task 2 stimulus)
/ firsttask_correct:			stores the accuracy of response to first task
/ secondtask_correct:			stores the accuracy of response to second task
/ correct_total:				stores the accuracy of the combined responses

(2) Summary data file: 'PsychologicalRefractoryPeriod_summary*.iqdat' (a separate file for each participant)

script.startdate:				date script was run
script.starttime:				time script was started
script.subjectid:				subject id number
script.groupid:					group id number
script.elapsedtime:				time it took to run script (in ms)
computer.platform:				the platform the script was run on
/completed:						0 = script was not completed (prematurely aborted); 1 = script was completed (all conditions run)
/gokey:							keyboard key associated with go-response (default: 24, 'O' key)
/lowkey:						keyboard key associated with low sound response (default: 44, 'z' key)
/highkey:						keyboard key associated with high sound response (default: 30, 'a' key)
/fixationduration:				duration that fixation cross is displayed on the screen (default: 250ms)
/task1stimulus_duration:		duration that the task 1 stimulus is maximally displayed on the screen (default: 2000ms)
/task2response_duration: 		max. response time period after onset of task 2 stimulus (default: 2000ms)
/intertrialinterval:			duration between trials (default: 2200ms)
/ sumRT2_maxSOA:				stores the sum of the rt to the second task after the maximum SOA (!!! EXCLUDES ERROR TRIALS)
/ sumRT2_minSOA:				stores the sum of the rt to the second task after the minimum SOA (!!! EXCLUDES ERROR TRIALS)
/ count_validMaxSOA:			counts the trials with the maximum SOA during which participant responds to task 2 (!!! EXCLUDES ERROR TRIALS)
/ count_validMinSOA:			counts the trials with the minimum SOA during which participant responds to task 2 (!!! EXCLUDES ERROR TRIALS)
/meanRT1_maxSOA:				calculates the mean reaction times in ms to task 1 for maximum SOAs (! only for correct trials)
/meanRT1_SOA3:					calculates the mean reaction times in ms to task 1 for SOA3s (! only for correct trials)
/meanRT1_SOA2:					calculates the mean reaction times in ms to task 1 for SOA2s (! only for correct trials)
/meanRT1_minSOA:				calculates the mean reaction times in ms to task 1 for minimum SOAs (! only for correct trials)
/meanRT2_maxSOA:				calculates the mean reaction times in ms to task 2 for maximum SOAs (! only for correct trials)
/meanRT2_SOA3:					calculates the mean reaction times in ms to task 2 for SOA3s (! only for correct trials)
/meanRT2_SOA2:					calculates the mean reaction times in ms to task 2 for SOA2s (! only for correct trials)
/meanRT2_minSOA:				calculates the mean reaction times in ms to task 2 for minimum SOAs (! only for correct trials)
/PRPInterferenceScore:			calculates the interference score by subtracting the mean rt times (task2)
								for maximum SOAs (low interference) from the mean rt times (task 2)
								for minimum SOAs (high interference)

								
EXPERIMENTAL DESIGN (see Marczinski & Fillmore, 2006)
* 2 (types of task 1 stimuli) x 2 (types of task 2 stimuli) x 4 (SOAs) * 12 repetitions = 192 trials
=> each combination of task stimuli (= 4 combinations) are paired with 12 sets of the 4 SOAs

SEQUENCE OF TRIAL EVENTS:
1.	fixation cross appears for 250ms (default, editable value)
2.	a blank screen is presented for a randomly determined time period (list.foreperiodduration contains default values)
3.	task 1 stimulus appears in the middle of the screen (response to task 1 stimulus can be given as soon as 
	stimulus appears on the screen; reaction time to task 1 is measured from onset of task 1 stimulus);
	task 1 stimulus disappears after 2000ms (default, editable value) or when response to task 2 is given
4.	after a randomly sampled SOA, the task 2 stimulus is presented (response to task 2 stimulus can be given as
	soon as task 2 stimulus appears on the screen; reaction time to task 2 is measured from onset of task 2 stimulus);
	task 2 stimulus was presented for 500ms.
5.  after participant responds to task 2 stimulus or after 2000ms of onset of task 2 stimulus (default, editable value), 
	whichever comes first, the intertrialperiod of 2200ms is started. Error Feedback is given during this
	time.

PRACTICE:
Practice is given twice, once to give participants an opportunity to learn about the tasks and the stimuli and once
to assess whether PRP interference (likely) occurs. The first set of practice trials (20 trials) gives 
complete feedback (correct, incorrect, no response detected). The second set of practice trials (20 trials) is presented
like the actual test with only error feedback/no response detected. After the second practice set, the PRP index score is presented and 
the experimenter can decide to continue on to the actual test or repeat practice.

STIMULI
TASK 1: go stimulus = "1" and nogo stimulus = "X" (see Marczinski & Fillmore, 2006).
The default response key for the go stimulus is the ENTER key (scancode 28, editable value). This differs from 
Marczinski & Fillmore (2006) as they used the "1" key on the numeric key pad on the right side of the keyboard.
In order to run this experiment on keyboards that do not have the numeric keypad on the right, a different response
key is used in this script.

TASK 2: low tone (125 Hz) ; high tone (1000hz), both 500ms long (see Marczinski & Fillmore, 2006); the stimuli are NOT originals.
The stimuli for this script were created in Audacity. 
The low tone was created with an amplitude of 0.8 (125Hz, 500ms); 
the high tone was created with an amplitude of 0.1 (1000Hz, 500ms).
The default keyboard response keys are "a" for high tone and "z" for the low tone (this combination is chosen due
to the fact that they both appear on the left and side of the keyboard with "a" sitting above (=high) "z" (=low)

INSTRUCTIONS
Instructions are not original but based heavily original instructions kindly provided by Dr. Fillmore.
Instructions can be edited under section "Editable INSTRUCTIONS".

EDITABLE CODE:
check below for (relatively) easily editable parameters, stimuli, instructions etc. 
Keep in mind that you can use this script as a template and therefore always "mess" with the entire code to further customize your experiment.

The parameters you can change are:

/gokey:						keyboard key associated with go-response (default: 24, 'O' key)
/lowkey:					keyboard key associated with low sound response (default: 44, 'z' key)
/highkey:					keyboard key associated with high sound response (default: 30, 'a' key)
/fixationduration:			duration that fixation cross is displayed on the screen (default: 250ms)
/task1stimulus_duration:	duration that the task 1 stimulus is maximally displayed on the screen in ms (default: 2000ms)
/task2response_duration: 	max. response time period after onset of task 2 stimulus in ms (default: 2000ms)
/intertrialinterval:		duration between trials in ms (default: 2200ms)

/maxSOA:					maximum SOA used in the study in ms (default: 800)
/SOA3:						default: 600ms
/SOA2:						default: 200ms
/minSOA:					minimum SOA used in the study in ms (default: 50)
							!!!if changed, go to Editable LISTS and change corresponding values there as well

Copyright © Millisecond Software. All rights reserved.
Contact | Terms of Service | Security Statement | Employment