Return to the Iowa Gambling Task page
						
										IOWA GAMBLING TASK
SCRIPT INFO

last updated: 08-15-2016 by K.Borchert (katjab@millisecond.com) for Millisecond Software LLC
Script Copyright © 08-15-2016 Millisecond Software


BACKGROUND INFO

											*Purpose*
This sample script shows how to implement the Iowa Gambling Task as described in:

Bechara A., Damasio A. R., Damasio H., Anderson S. W. (1994). 
Insensitivity to future consequences following damage to human prefrontal cortex. Cognition, 50, 7-15 .


											  *Task*
Participant are presented 4 decks of cards and are asked to select a card from one of the 4 decks with their mouse. 
By turning over the cards, participants can win money but also lose money.
The four different decks can be categorized as advantageous (overall more wins than losses)
or disadvantageous (overall more losses than wins).


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

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

build:							Inquisit build
computer.platform:				the platform the script was run on
date, time, subject:			date and time script was run with the current subjectnumber 
values.cardselected:			shows the number of cards played
values.groupnumber:				the groupnumber (1-4) the subject was randomly assigned to	
response:						the participant's response
/responseCategory:				"advantageous" vs. "disadvantageous"
latency: 						the trial latency
values.gain:					stores the trial's gain depending on choice
values.loss:					stores the trial's loss depending on choice
values.currenttotal:			stores the current amount of money won		
/countAdvantage:				counts the number of advantageous selections (deck 1 & deck 2)
/countDisAdvantage:				counts the number of disadvantageous selections (deck 3 & deck 4)

(2) Summary data file: 'IowaGamblingTask_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)
values.groupnumber:				the groupnumber (1-4) the subject was randomly assigned to	
values.currenttotal:			stores the amount of money won	
/countAdvantage:				counts the number of advantageous selections (deck 1 & deck 2)
/countDisAdvantage:				counts the number of disadvantageous selections (deck 3 & deck 4)

EXPERIMENTAL SET-UP
	
* The game is set up to play 1 block of 100 trials
* The four decks are randomly assigned a (permanent) screen location (assignment by randomly assigned values.groupnumber). 
regardless of actual screen presentation:
deck1/deck2 = disadvantageous
deck3/deck4 = advantageous
* By default, in this script the win/loss probabilities assigned are aligned with the model of "once played, 
cards are NOT returned to the deck" (therefore turning probabilities into actual frequencies over the course of 10 selections of each deck;
see more info under section EXPRESSIONS)

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:

/ startamount:							the amount of money owned at the start of the game; startamount (default) = 2000
/showcardinfo:							shows information about number of cards played/how many more to come

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