Return to the Dot Probe Task Template (Text) page
___________________________________________________________________________________________________________________	

						GENERIC DOT PROBE TASK - with word stimuli (top/bottom)
										Measure of Attentional Bias
___________________________________________________________________________________________________________________

Script Author: Katja Borchert, Ph.D. (katjab@millisecond.com) for Millisecond Software, LLC
Date: 06-05-2015
last updated:  11-08-2019 by K. Borchert (katjab@millisecond.com) for Millisecond Software, LLC

Script Copyright © 11-08-2019 Millisecond Software

___________________________________________________________________________________________________________________
BACKGROUND INFO 	
___________________________________________________________________________________________________________________

This script implements a dotprobe procedure to measure attentional bias with word stimuli.
The implemented procedure is based on:

Miller, M.A. & Fillmore, M.T (2010). The effect of word complexity on attentional bias
towards alcohol-related words in adult drinkers. Addiction, 105, 883–890.

Note: this dot probe runs with words instead of images and the stimuli are presented on top and bottom of the
fixation cross (instead of to the left and right)

___________________________________________________________________________________________________________________
TASK DESCRIPTION	
___________________________________________________________________________________________________________________	
After presentation of a fixation cross in the center of the screen, participants are presented with 
2 words. The position of the words is randomly chosen to be either bottom or top to the location of the fixation cross. 
After a short duration, the two words disappear and a probe stimulus (here: X) appears in the location of one of the
texts. Participants are asked to press one key if the probe is on the bottom and another if the probe is on top.

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

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

(1) Raw data file: 'genericdotprobe_words_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.

task:							1 = practice; 2 = test															
category:						1 = category1 ; 2 = category2 
Congruence:						1 = probe and target (e.g. category1) position same; 2 = probe and target (e.g. category1) position different
target_position:					1 = target (e.g. category1) word on left; 2 = target (e.g. category1) word on right 

comp_x-probe_x:					the x-coordinate (in %) of the target (e.g. category1)/ comp ('paired with target') /probe stims
itemnumber:						itemnumber of currently selected word
target_word:						stores the currently presented target (e.g. category1) word
comp_word:						stores the currently presented comp ('paired with target') word

response:						the participant's response (scancode of response button)
									 49 = N (left key)
									 50 = M (right key)
									 
latency: 							the response latency in ms (measured from onset of probe)
correct:							accuracy of response (regardless of whether latency >= parameters.minimum_latency)
								1 = correct; 0 = incorrect
valid:							latency in ms that is >= parameters.minimum_latency
validCorrect:						1 = response was correct AND latency was >= parameters.minimum_latency; 0 = otherwise

(2) Summary data file: 'genericdotprobe_words_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)

NOTE: all latency/accuracy summary variables are based on correct responses with latencies >= parameters.minimum_latency (default: 100ms)

propcorrect:						proportion correct overall
meanrt:							overall mean latency (in ms)

propcorrect_congruent_Category1:		proportion correct in congruent Category1  trials
meanrt_congruent_Category1:			mean latency of congruent Category1  trials
propcorrect_incongruent_Category1:		proportion correct in incongruent Category1  trials 
meanrt_incongruent_Category1:			mean latency of incongruent Category1  trials

AB_Category1:						Attentional Bias for Category1 words : If AB_Category1 > 0 
									=> faster mean latencies to congruent Category1 trials than incongruent ones

propcorrect_congruent_Category2:		proportion correct in congruent Category2 trials 
meanrt_congruent_Category2:			mean latency of congruent Category2  trials
propcorrect_incongruent_Category2:		proportion correct in incongruent Category2 trials 
meanrt_incongruent_Category2:			mean latency of incongruent Category2  trials

AB_Category2:						Attentional Bias for Category2 words ('targets'): If AB_Category2 > 0
									=> faster mean latencies to congruent Category2 trials than incongruent ones

___________________________________________________________________________________________________________________	
EXPERIMENTAL SET-UP 
___________________________________________________________________________________________________________________	
2 categories tested; within-design
- 1 block of 10 practice trials
- 1 block of 80 trials: 40 category1 trials (category1target-category2comp pairings) and 40 category2 pairings
	10 word pairs, all texts presented 4 times
	category1:
	=> top/bottom, followed by prime/not followed by prime => 10 * 4 = 40 trials
	category2: the same
	Note: all 80 trials are randomly sampled without replacement

	DEFAULT TRIAL SEQUENCES
	fixation cross (500ms) -> target word pair (1000ms) -> tp_isi (0ms) -> probe (max. 1000ms)	(latency measured from onset of probe until response or offset of probe; whichever comes first)

___________________________________________________________________________________________________________________	
STIMULI
___________________________________________________________________________________________________________________	
generic text stimuli - insert your own under section Editable Stimuli
stimuli are presented in white on a black background

___________________________________________________________________________________________________________________	
INSTRUCTIONS 
___________________________________________________________________________________________________________________
Instructions are provided by Millisecond Software
as htm/html pages and can be edited by changing the provided htm/html files.
To edit htm/html-files: open the respective documents in simple Text Editors such as TextEdit (Mac)
or Notepad (Windows).

___________________________________________________________________________________________________________________	
INSTRUCTIONS TO ADD CATEGORIES
___________________________________________________________________________________________________________________
go to section INSTRUCTIONS HOW TO ADD ADDITIONAL CATEGORIES

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

/ReadyDuration:							the duration (in ms) of the get-ready-trial (default: 3000ms)
/fixationduration/targetduration:				the duration of the fixation cross (default: 500ms)/the targets (default: 1000ms)
/tp_isi:									target-probe interstimulus interval in ms (0ms)

/probeduration:							the duration of the probe presentation (default: 1000ms)
										Note: by default this scripts allows for responses for the entire probe duration;
										the trial terminates after parameters.probeduration is over

/iti:										intertrialpause in ms (default: 0ms)
/probe:									the symbol used for the probe (default: X)
/responsekey_bottom:						the scancode of the bottom response button (default: 18)
/responsekey_top:							the scancode of the bottom response button (default: 23)
/responsekey_bottom_label:				the label of the bottom response button ("E")
/responsekey_top_label:					the label of the top response button ("I")

/minimum_latency:						the minimum latency of a correct response that is included into summary variables
										(default: 100ms)

Physical Settings of Display:				Note: change the settings to optimize the display on your computer screen

/target_bottom_y-target_top_y:				the y-coordinate in % of the top/bottom target (default: 35%, 65%)
/target_x:								the x-coordinate of the target (default: center at 50%)
/fixationcross_height:						the height of the fixation cross in canvas height percentage (default: 5%)
/probe_height:							the height of the probe in canvas height percentage (default: 5%)
/wordheight:								the height of the word in canvas height percentage (default: 5%)

Copyright © Millisecond Software. All rights reserved.
Contact | Terms of Service | Privacy Statement | Security Statement | GDPR
Website Security Test