Return to the Manikin Task (Mouse Input) page
___________________________________________________________________________________________________________________	

				*STIMULUS RESPONSE COMPATIBILITY TASK (SRCT)-mouse/touchscreen input*
___________________________________________________________________________________________________________________	

Script Author: original Inquisit script written by Barkby et al (2012)
last updated:  10-30-2019 by K. Borchert (katjab@millisecond.com) for Millisecond Software, LLC

___________________________________________________________________________________________________________________
BACKGROUND INFO 	
___________________________________________________________________________________________________________________	

This script implements a Stimulus Response Compatibility Task (SRCT); a reaction time task used
to measure the speed of automatic approach/avoidance tendencies towards particular item categories.

The implemented procedure is described in:

Barkby, H., Dickson, J.M., Roper, L., & Field, M. (2012). To Approach or Avoid Alcohol? Automatic and Self-
Reported Motivational Tendencies in Alcohol Dependence. Alcoholism: Clinical and Experimental Research, 36, 
361-368.

Millisecond Software LLC thanks Dr. Matt Field for generously providing the original scripts as well
as the original stimuli!

___________________________________________________________________________________________________________________
TASK DESCRIPTION	
___________________________________________________________________________________________________________________	
Participants are presented with either an alcohol-related picture or a control picture. 
Depending on instructions, they are asked to press an up/down/left/right navigation button (on screen) so as 
to move a manikin, that is either presented above (top) or below (bottom) the picture,  towards (or away) 
from the alcohol related  pictures and away (towards) the control pictures.

___________________________________________________________________________________________________________________	
DURATION 
___________________________________________________________________________________________________________________	
the default set-up of the script takes appr. 15 minutes to complete

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

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

build:								The specific Inquisit version used (the 'build') that was run
computer.platform:				the platform the script was run on (win/mac/ios/android)
date, time, 						date and time script was run 
subject, group, 					with the current subject/groupnumber
script.sessionid:					with the current session id

blockcode, blocknum:			the name and number of the current block (built-in Inquisit variable)
trialcode, trialnum: 				the name and number of the currently recorded trial (built-in Inquisit variable)
										Note: trialnum is a built-in Inquisit variable; it counts all trials run; even those
										that do not store data to the data file such as feedback trials. Thus, trialnum 
										may not reflect the number of main trials run per block. 								

values.expcondition:				6 experimental conditions; subject assignment by groupnumber
									Experiment runs 3 main blocks (block.main_approach_alc, block.main_avoid_alc, block.main_left_alc/block.main_right_alc).
									The order of the 3 main blocks is counterbalanced across participants. 
									Furthermore, half the participants in each counterbalanced condition run block.main_right_alc, the other half
									run block.main_left_alc => 6 conditions
									
Presented Stim:					contains the name of the picture image
response:							the participant's response
correct:							the correctness of the response (1 = correct; 0 = incorrect)
latency: 							the response latency (in ms)

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

computer.platform:				the platform the script was run on (win/mac/ios/android)
script.startdate:					date script was run
script.starttime:					time script was started
script.subjectid:					assigned subject id number
script.groupid:					assigned group id number
script.sessionid:					assigned session id number
script.elapsedtime:				time it took to run script (in ms); measured from onset to offset of script
script.completed:				0 = script was not completed (prematurely aborted); 
									1 = script was completed (all conditions run)
									
values.expcondition:				6 experimental conditions; subject assignment by groupnumber
									Experiment runs 3 main blocks (block.main_approach_alc, block.main_avoid_alc, block.main_left_alc/block.main_right_alc).
									The order of the 3 main blocks is counterbalanced across participants. 
									Furthermore, half the participants in each counterbalanced condition run block.main_right_alc, the other half
									run block.main_left_alc => 6 conditions
								
expressions.propcorr_total:			overall proportion correct (test trials only)
expressions.meanRT_total:				overall mean latency (in ms) of correct test trials

expressions.propcorr_AlcApproach:	proportion correct Alcohol Approach test trials
expressions.meanRT_AlcApproach:		mean latency (in ms) of correct Alcohol Approach test trials

expressions.propcorr_AlcAvoid:		proportion correct Alcohol Avoid test trials
expressions.meanRT_AlcAvoid:			mean latency (in ms) of correct Alcohol Avoid test trials

expressions.propcorr_CtrlApproach:	proportion correct Control Approach test trials
expressions.meanRT_CtrlApproach:		mean latency (in ms) of correct Control Approach test trials

expressions.propcorr_CtrlAvoid:		proportion correct Control Avoid test trials
expressions.meanRT_CtrlAvoid:			mean latency (in ms) of correct Control Avoid test trials

expressions.propcorr_AlcLeft:			proportion correct Alcohol Left test trials
expressions.meanRT_AlcLeft:			mean latency (in ms) of correct Alcohol Left test trials

expressions.propcorr_AlcRight:		proportion correct Alcohol Right test trials
expressions.meanRT_AlcRight:			mean latency (in ms) of correct Alcohol Right test trials

expressions.propcorr_CtrlLeft:		proportion correct Control Left test trials
expressions.meanRT_CtrlLeft:			mean latency (in ms) of correct Control Left test trials

expressions.propcorr_CtrlRight:		proportion correct Control Right test trials
expressions.meanRT_CtrlRight:			mean latency (in ms) of correct Control Right test trials


___________________________________________________________________________________________________________________	
EXPERIMENTAL SET-UP 
___________________________________________________________________________________________________________________	

Experiment runs 3 main blocks (block.main_approach_alc, block.main_avoid_alc, block.main_left_alc/block.main_right_alc).
The order of the 3 main blocks is counterbalanced across participants. 
Furthermore, half the participants in each counterbalanced condition run block.main_right_alc, the other half
run block.main_left_alc.
=> 6 experimental conditions, assignment by groupnumber (default, can be changed under EXPERIMENT)

Blocks:
1. block.main_approach_alc: move the manikin towards alcohol related pictures and away from control pictures
(in half the trials manikin is on top, in the other half the manikin is on the bottom)
2. block.main_avoid_alc: move the manikin away from alcohol related pictures and towards control pictures
(in half the trials manikin is on top, in the other half the manikin is on the bottom)
3a. block.main_left_alc: move the manikin to the left for alcholo related pictures and to the right for control pictures
(in half the trials manikin is on top, in the other half the manikin is on the bottom)
3b. block.main_right_alc: move the manikin to the right for alcholo related pictures and to the left for control pictures
(in half the trials manikin is on top, in the other half the manikin is on the bottom)

Each main block has 8 practice trials and 2 x 28 experimental trials (= 2 subblocks). For each subblock of each main block (e.g. block.main_approach_alc) 
the type of trial is randomly sampled  from the four corresponding trials (e.g. trial.alcapproach_manikintop, trial.alcapproach_manikinbottom, trial.ctrlavoid_manikinbottom, trial.ctrlavoid_manikintop) 
without replacement => 14 alcohol images and 14 control images are shown, 7 of each with the manikin on top and 7 with the manikin on the bottom.
Over the course of the 2 x 28 trials (= 2 subblocks), each picture appears twice (once in the first subblock, once in the second subblock), 
once with the manikin on top and once with the manikin on the bottom. 

Trials:
* A clearscreen screen is shown for 1000ms, followed by the alcholol-related or control picture with a manikin on top or on the bottom
* a correct response is followed by showing a video of the manikin moving in the correct direction (duration: 1000ms)
* an incorrect response is followed by a red "X" in the middle of the screen (duration: 1000ms)

___________________________________________________________________________________________________________________	
INSTRUCTIONS 
___________________________________________________________________________________________________________________	
Instructions are the originals. To edit go to section Editable Instructions.

___________________________________________________________________________________________________________________	
STIMULI
___________________________________________________________________________________________________________________
14 alcohol related and 14 control pictures. 

!!! NOTE: The stimuli are culturally specific and may not work for a study outside the intended culture. 
To use your own images go to Editable Stimuli-> item.alcoholpics and item.controlpics
and substitute your own.

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