___________________________________________________________________________________________________________________ CONSTANT SUM DEMO ___________________________________________________________________________________________________________________ SCRIPT INFO Script Author: Katja Borchert, Ph.D. (katjab@millisecond.com) for Millisecond Software, LLC Date: 06-18-2014 last updated: 10-25-2023 by K. Borchert (katjab@millisecond.com) for Millisecond Software, LLC Script Copyright © 10-25-2023 Millisecond Software ___________________________________________________________________________________________________________________ BACKGROUND INFO ___________________________________________________________________________________________________________________ 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 ___________________________________________________________________________________________________________________ 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")