Return to the Constant Sum Tutorial (Fancy) page
										CONSTANT SUM DEMO

SCRIPT INFO

Script Author: Katja Borchert, Ph.D. (katjab@millisecond.com) for Millisecond Software, LLC
Date: 06-18-2014

last updated: 09-16-2014 by K.Borchert for Millisecond Software LLC

Copyright © 09-16-2014 Millisecond Software

BACKGROUND INFO

										*SCRIPT PURPOSE*
This script runs code to run a Constant Sum Demo

											*TASK*
Participants are asked to allocate 100 points to 3 attributes for product X.
Participant can click on each of the provided boxes with the mouse and then use the keyboard to type in the
numbers. If one box is filled, the ENTER key needs to be pressed to be able to move to the next box.
A running total shows how many points are still available to allocate. If all points are 
allocated, participant can choose "done".


DATA: this section contains data file information
1) Raw data file

date, time, subject:				date and time script was run with the current subjectnumber 
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) 
response:							the participant's response
latency: 							the response latency
/productX:							sets the label for productX (default: "ProductX")
/attribute1:						set the label for attribute1 (default: "Attribute1")
/number_attribute1:					stores the number allocated to attribute1
/attribute2:						set the label for attribute2 (default: "Attribute2")
/number_attribute2:					stores the number allocated to attribute2
/attribute3:						set the label for attribute3 (default: "Attribute3")
/number_attribute3:					stores the number allocated to attribute3
/remainder:							stores the current remainder sum

2) Summary data file
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)
/completed:							0 = script was not completed; 1 = script was completed (all conditions run)

/productX:							sets the label for productX (default: "ProductX")
/attribute1:						set the label for attribute1 (default: "Attribute1")
/number_attribute1:					stores the number allocated to attribute1
/attribute2:						set the label for attribute2 (default: "Attribute2")
/number_attribute2:					stores the number allocated to attribute2
/attribute3:						set the label for attribute3 (default: "Attribute3")
/number_attribute3:					stores the number allocated to attribute3
/remainder:							stores the current remainder sum


EDITABLE CODE:

/productX:					sets the label for productX (default: "ProductX")
/attribute1:				sets the label for attribute1 (default: "Attribute1")
/attribute2:				sets the label for attribute2 (default: "Attribute2")
/attribute3:				sets the label for attribute3 (default: "Attribute3")
Copyright © Millisecond Software. All rights reserved.
Contact | Terms of Service | Security Statement | Employment