﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>Millisecond Forums » Millisecond Forums » Inquisit 4  » Investment task</title><generator>InstantForum 2017-1 Final</generator><description>Millisecond Forums</description><link>https://forums.millisecond.com/</link><webMaster>Millisecond Forums</webMaster><lastBuildDate>Sun, 13 Sep 2026 19:12:55 GMT</lastBuildDate><ttl>20</ttl><item><title>Investment task</title><link>https://forums.millisecond.com/Topic19966.aspx</link><description>Hello,&lt;br/&gt;&lt;br/&gt;In the attached investment task, a participant will have an initial amount of 1000£. For the first 10 trials (or days, "hold trials") they can just "hold" the share. From trial (or day) 11 to 40 they can choose ("choice trials") if sell it or hold it. If they sell the share the block will end and they will go to the next of the 9 blocks of the first part of the experiment.&amp;nbsp;&lt;br/&gt;Once they finish the first part of the experiment, after a break they will start the second part of the experiment.&lt;br/&gt;&lt;br/&gt;There will be 4 possible experiments, that corresponds to different couples of set of trials.&lt;br/&gt;I have introduced an openended trial that I would like to use to start ExperimentA if the letter "a" is entered (that will run set A and then set B),&amp;nbsp;ExperimentC if the letter "c" is entered (that will run set C and then set D), and so on.&lt;br/&gt;The 4 possible couple of sets are: A-B, C-D, E-F, G-H.&lt;br/&gt;Each part of experiment ("tdcs" or "control") corresponds to a set. Each part of the experiment consists of 3 blocks for each of the 3 conditions (=Flat, Loss, Gain), so each set (or part of the experiment = "tdcs" or "control") will run 9 blocks.&amp;nbsp;&lt;br/&gt;Each block will run max40 trials (10 hold trials + &amp;gt;=1-30 choice trials).&lt;br/&gt;&lt;br/&gt;The 9 blocks of the first part will be randomly selected within the first set (e.g., set A). Differently, I would like the 9 blocks of second part of the experiment to follow the same sequence of the first part (e.g.:&lt;br/&gt;ExperimentA:&lt;br/&gt;- Set A (t-dcs part): &lt;br/&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 1. Loss_(block nr 3);&lt;br/&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 2.&amp;nbsp;Flat_(block nr 2);&lt;br/&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 3.&amp;nbsp;Gain_(block nr 2);&lt;br/&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 4.&amp;nbsp;Loss_(block nr 1);&lt;br/&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 5.&amp;nbsp;Gain_(block nr 3);&lt;br/&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 6.&amp;nbsp;Loss_(block nr 2);&lt;br/&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 7.&amp;nbsp;Flat_(block nr 3);&lt;br/&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 8.&amp;nbsp;Gain_(block nr 1);&lt;br/&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 9.&amp;nbsp;Flat_(block nr 1);&lt;br/&gt;- Set B (control part):&amp;nbsp;&lt;br/&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 1. Loss_(block nr 3);&lt;br/&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 2.&amp;nbsp;Flat_(block nr 2);&lt;br/&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 3.&amp;nbsp;Gain_(block nr 2);&lt;br/&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 4.&amp;nbsp;Loss_(block nr 1);&lt;br/&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 5.&amp;nbsp;Gain_(block nr 3);&lt;br/&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 6.&amp;nbsp;Loss_(block nr 2);&lt;br/&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 7.&amp;nbsp;Flat_(block nr 3);&lt;br/&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 8.&amp;nbsp;Gain_(block nr 1);&lt;br/&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 9.&amp;nbsp;Flat_(block nr 1);&lt;br/&gt;)&lt;br/&gt;&lt;br/&gt;The stimuli are in the Copy of StimulyProgram xlsx file. Do I need to copy all of them? I have just copied the first set and created the correspondent block for it, but it is not a very efficient way to do it. &lt;br/&gt;Is there way to write just the same trials/block and upload different series of stimuli rather than create a different block script for block (E.g. Block_AFlat_1 for the block Flat_1 in the setA)?&lt;br/&gt;Would it be then possible to save in the data in a format that save all the 40 items per block even if the block finishes at trial number 36 for example?&lt;br/&gt;&lt;br/&gt;Any suggestion on how to do?&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;</description><pubDate>Wed, 02 Nov 2016 05:36:59 GMT</pubDate><dc:creator>tecnika</dc:creator></item><item><title>RE: Investment task</title><link>https://forums.millisecond.com/Topic20023.aspx</link><description>Thank you Dave, I finally got it right.&lt;br/&gt;Your help is very very appreciated!&lt;br/&gt;&lt;br/&gt;Elena&lt;br/&gt;</description><pubDate>Wed, 02 Nov 2016 05:36:59 GMT</pubDate><dc:creator>tecnika</dc:creator></item><item><title>RE: Investment task</title><link>https://forums.millisecond.com/Topic19982.aspx</link><description>FYI, i was in the process of writing a reply to your previous post in this thread while you were submitting that update. The response &lt;a href="https://www.millisecond.com/forums/FindPost19981.aspx"&gt;https://www.millisecond.com/forums/FindPost19981.aspx&lt;/a&gt; tackles the various selection questions, including how to record the random order of (sub-)lists administered in the 1st part (e.g. A) and reproduce it in the 2nd part (e.g. B). If you code the "mechanics" (the selection logic, etc.) of the script abstractly, you then only need to flip out the few &amp;lt;item&amp;gt; elements via &amp;lt;include&amp;gt;.&lt;br/&gt;</description><pubDate>Fri, 28 Oct 2016 09:08:24 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: Investment task</title><link>https://forums.millisecond.com/Topic19981.aspx</link><description>#1: Do *not* create condition-specifc blocks. You do not need them. With the conditional &amp;lt;include&amp;gt; elements, all you switch out are the things that are *different* for each condition / set, mainly the items. Take a look at this minimal example &lt;a href="https://www.millisecond.com/forums/FindPost19046.aspx"&gt;https://www.millisecond.com/forums/FindPost19046.aspx&lt;/a&gt; . Notice that the "main" script has all the trials and blocks in it. The only thing that gets included conditionally is a different set of items, here based on the subject number. &lt;br/&gt;&lt;br/&gt;#2: You should consolidate all the items into a single &amp;lt;item&amp;gt; element. Then select the different sub-sets (A_Flat_1, etc.) based on their item numbers only. You encode those item numbers in &amp;lt;list&amp;gt;s. You set those lists to sequential selection, and -- at the start of a block -- chose one of the lists at random. Similarly, you record that random list order from the 1st part (e.g. A) in another list. You then use the latter list to reproduce the same order in the 2nd part (e.g. B). &lt;br/&gt;&lt;br/&gt;&amp;lt;values&amp;gt;&lt;br/&gt;/ selectedlist = 1&lt;br/&gt;&amp;lt;/values&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;expt&amp;gt;&lt;br/&gt;/ blocks = [1-2 = pt1_block; 3-4 = pt2_block]&lt;br/&gt;&amp;lt;/expt&amp;gt;&lt;br/&gt;&lt;br/&gt;//blocks&lt;br/&gt;//part 1 (e.g. A)&lt;br/&gt;&amp;lt;block pt1_block&amp;gt;&lt;br/&gt;/ onblockbegin = [values.selectedlist = list.pt1_listorder.nextvalue; &lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; list.pt2_listorder.appenditem(list.pt1_listorder.currentvalue);]&lt;br/&gt;/ trials = [1-4 = pt1_trial]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;//part 2 (e.g. B)&lt;br/&gt;&amp;lt;block pt2_block&amp;gt;&lt;br/&gt;/ onblockbegin = [values.selectedlist = list.pt2_listorder.nextvalue;]&lt;br/&gt;/ trials = [1-4 = pt2_trial]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;//part 1 trial&lt;br/&gt;&amp;lt;trial pt1_trial&amp;gt;&lt;br/&gt;/ stimulusframes = [1=pt1]&lt;br/&gt;/ validresponse = (57)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;//part 2 trial&lt;br/&gt;&amp;lt;trial pt2_trial&amp;gt;&lt;br/&gt;/ stimulusframes = [1=pt2]&lt;br/&gt;/ validresponse = (57)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text pt1&amp;gt;&lt;br/&gt;/ items = pt1_items&lt;br/&gt;/ select = list.pt1_itemnumber.nextvalue&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text pt2&amp;gt;&lt;br/&gt;/ items = pt2_items&lt;br/&gt;/ select = list.pt2_itemnumber.nextvalue&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item pt1_items&amp;gt;&lt;br/&gt;/ 1 = "A_Flat_1_Item_1"&lt;br/&gt;/ 2 = "A_Flat_1_Item_2"&lt;br/&gt;/ 3 = "A_Flat_1_Item_3"&lt;br/&gt;/ 4 = "A_Flat_1_Item_4"&lt;br/&gt;&lt;br/&gt;/ 5 = "A_Flat_2_Item_1"&lt;br/&gt;/ 6 = "A_Flat_2_Item_2"&lt;br/&gt;/ 7 = "A_Flat_2_Item_3"&lt;br/&gt;/ 8 = "A_Flat_2_Item_4"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item pt2_items&amp;gt;&lt;br/&gt;/ 1 = "B_Flat_1_Item_1"&lt;br/&gt;/ 2 = "B_Flat_1_Item_2"&lt;br/&gt;/ 3 = "B_Flat_1_Item_3"&lt;br/&gt;/ 4 = "B_Flat_1_Item_4"&lt;br/&gt;&lt;br/&gt;/ 5 = "B_Flat_2_Item_1"&lt;br/&gt;/ 6 = "B_Flat_2_Item_2"&lt;br/&gt;/ 7 = "B_Flat_2_Item_3"&lt;br/&gt;/ 8 = "B_Flat_2_Item_4"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;//select a list at random for part 1&lt;br/&gt;&amp;lt;list pt1_listorder&amp;gt;&lt;br/&gt;/ items = (1,2)&lt;br/&gt;/ selectionmode = random&lt;br/&gt;/ replace = false&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;//records the random list order from part 1 &lt;br/&gt;//reproduces the same list order in part 2&lt;br/&gt;//via sequential selection&lt;br/&gt;&amp;lt;list pt2_listorder&amp;gt;&lt;br/&gt;/ selectionmode = sequence&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;//returns the item # numbers for the selected list in the block&lt;br/&gt;//part 1 (e.g. A)&lt;br/&gt;&amp;lt;list pt1_itemnumber&amp;gt;&lt;br/&gt;/ items = (list.flat_1.nextvalue, list.flat_2.nextvalue)&lt;br/&gt;/ selectionmode = values.selectedlist&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;//returns the item # numbers for the selected list in the block&lt;br/&gt;//part 1 (e.g. B)&lt;br/&gt;&amp;lt;list pt2_itemnumber&amp;gt;&lt;br/&gt;/ items = (list.flat_1.nextvalue, list.flat_2.nextvalue)&lt;br/&gt;/ selectionmode = values.selectedlist&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;//flat 1 item #s are 1 to 4&lt;br/&gt;&amp;lt;list flat_1&amp;gt;&lt;br/&gt;/ items = (1,2,3,4)&lt;br/&gt;/ selectionmode = sequence&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;//flat 2 item #s are 5 to 8&lt;br/&gt;&amp;lt;list flat_2&amp;gt;&lt;br/&gt;/ items = (5,6,7,8)&lt;br/&gt;/ selectionmode = sequence&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;</description><pubDate>Fri, 28 Oct 2016 08:52:38 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: Investment task</title><link>https://forums.millisecond.com/Topic19980.aspx</link><description>Hi Dave,&lt;br/&gt;&lt;br/&gt;Still me. I managed to do points 1 and 2. Still one question remaining.&lt;br/&gt;&lt;br/&gt;Then, how can I follow the same order for the second set (e.g., B_Flat_3, &amp;nbsp;B_Flat_1, B_Gain_2) randomly selected in the previous set?&lt;br/&gt;&lt;br/&gt;Many thanks,&lt;br/&gt;&lt;br/&gt;Elena</description><pubDate>Fri, 28 Oct 2016 08:39:51 GMT</pubDate><dc:creator>tecnika</dc:creator></item><item><title>RE: Investment task</title><link>https://forums.millisecond.com/Topic19975.aspx</link><description>Thanks, Dave. That's help.&lt;br/&gt;&lt;br/&gt;Another couple of queries, sorry...&lt;br/&gt;&lt;br/&gt;1. For each set I have 9 blocks of 40 trials each. In total 18 blocks (multiplied by 4 couple of series).&lt;br/&gt;At the moment, I have just done ONE block (A_Flat_1, that means series A, Flat condition, first block), and the script looks already quite long.&lt;br/&gt;Many trials and items has&amp;nbsp;A_Flat_1 as variable and if I copy them just replacing A_Flat_1 with the correspondent variable, the script will become huge....&amp;nbsp;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; display: inline !important; float: none;"&gt;How can I use the same script for different blocks?&lt;span class="Apple-converted-space"&gt;&amp;nbsp;... I hope there is a way..&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;br/&gt;2. How can I randomise the lists of item selected? For instance if I want to select randomly the item lists (e.g., A_Flat_3, &amp;nbsp;A_Flat_1,&amp;nbsp;A_Gain_2, etc) and at the same time run sequentially the items in the condition selected (items 1,2,3...etc)?&lt;br/&gt;&lt;br/&gt;Then, how can I follow the same order for the second set (e.g., B_Flat_3, &amp;nbsp;B_Flat_1, B_Gain_2) randomly selected in the previous set?&lt;br/&gt;&lt;br/&gt;Many thanks,&lt;br/&gt;&lt;br/&gt;Elena&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;</description><pubDate>Fri, 28 Oct 2016 02:55:26 GMT</pubDate><dc:creator>tecnika</dc:creator></item><item><title>RE: Investment task</title><link>https://forums.millisecond.com/Topic19972.aspx</link><description>#1: If you want to work with the conditional &amp;lt;include&amp;gt; approach, it is advisable to keep the group id numeric (i.e., instead of "A", use 1, and so forth).&lt;br/&gt;#2: If you have for sets A-B, C-D, E-F, and G-H, you need four &amp;lt;include&amp;gt; elements in the main script:&lt;br/&gt;&lt;br/&gt;//1st condition: AB&lt;br/&gt;&amp;lt;include&amp;gt;&lt;br/&gt;/ precondition = [mod(script.groupid,4) == 1]&lt;br/&gt;/ file="Set_AB.iqx"&lt;br/&gt;&amp;lt;/include&amp;gt;&lt;br/&gt;&lt;br/&gt;//2nd condition: CD&lt;br/&gt;&amp;lt;include&amp;gt;&lt;br/&gt;/ precondition = [mod(script.groupid,4) == 2]&lt;br/&gt;/ file="Set_CD.iqx"&lt;br/&gt;&amp;lt;/include&amp;gt;&lt;br/&gt;&lt;br/&gt;//3rd condition: EF&lt;br/&gt;&amp;lt;include&amp;gt;&lt;br/&gt;/ precondition = [mod(script.groupid,4) == 3]&lt;br/&gt;/ file="Set_EF.iqx"&lt;br/&gt;&amp;lt;/include&amp;gt;&lt;br/&gt;&lt;br/&gt;//4th condition: GH&lt;br/&gt;&amp;lt;include&amp;gt;&lt;br/&gt;/ precondition = [mod(script.groupid,4) == 0]&lt;br/&gt;/ file="Set_GH.iqx"&lt;br/&gt;&amp;lt;/include&amp;gt;&lt;br/&gt;&lt;br/&gt;where Set_AB.iqx, Set_CD.iqx, etc. contain the things that are specific to the respective condition (e.g. different items).&lt;br/&gt;&lt;br/&gt;In Inquisit Lab, you then simply enter the condition you wish to run in the group id corresponding to the set you wish to administer. &lt;br/&gt;&lt;br/&gt;&lt;img src="https://www.millisecond.com/forums/uploads/images/6509662d-db16-46cf-bcbf-4e85.jpg" alt="https://www.millisecond.com/forums/uploads/images/6509662d-db16-46cf-bcbf-4e85.jpg" /&gt;&lt;br/&gt;&lt;br/&gt;On the web, you can either go for sequential group numbers, random group numbers or supply the condition via a URL query parameter. The logic in the above &amp;lt;include&amp;gt; elements' /precondition attributes works the same way condition assignment in &amp;lt;expt&amp;gt;s or &amp;lt;batch&amp;gt; elements works: &lt;a href="http://www.millisecond.com/forums/Topic13856.aspx"&gt;http://www.millisecond.com/forums/Topic13856.aspx&lt;/a&gt;</description><pubDate>Thu, 27 Oct 2016 12:58:49 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: Investment task</title><link>https://forums.millisecond.com/Topic19971.aspx</link><description>Hi Dave,&lt;br/&gt;&lt;br/&gt;I don't understand how to assign the group number to each file.&lt;br/&gt;&lt;br/&gt;For instance if I want that group A starts with Sets_AB how can I do?&lt;br/&gt;&lt;br/&gt;Many thanks,&lt;br/&gt;&lt;br/&gt;Elena</description><pubDate>Thu, 27 Oct 2016 09:12:34 GMT</pubDate><dc:creator>tecnika</dc:creator></item><item><title>RE: Investment task</title><link>https://forums.millisecond.com/Topic19970.aspx</link><description>Hi Dave,&lt;br/&gt;&lt;br/&gt;Thank you for your reply.&lt;br/&gt;&lt;br/&gt;About the result file this was an external request. I guess it would be to have matrix of the same size and analyse the file in Matlab. Just a guess tho.&lt;br/&gt;&lt;br/&gt;Thank you for your help, I will let you know if I will be able to implement the IAT solution to my script.&lt;br/&gt;&lt;br/&gt;Elena</description><pubDate>Thu, 27 Oct 2016 08:07:02 GMT</pubDate><dc:creator>tecnika</dc:creator></item><item><title>RE: Investment task</title><link>https://forums.millisecond.com/Topic19968.aspx</link><description>&amp;gt; Is there way to write just the same trials/block and upload different series of stimuli rather than create a different block script for block&lt;br/&gt;&lt;br/&gt;You can either &lt;br/&gt;(1) Work with conditional &amp;lt;include&amp;gt; elements (which precludes the &amp;lt;openended&amp;gt; option though; you must either select the stimuli based on the entered subject or group number): Is there way to write just the same trials/block and upload different series of stimuli rather than create a different block script for block (E.g. Block_AFlat_1 for the block Flat_1 in the setA)?&lt;br/&gt;&lt;br/&gt;or&lt;br/&gt;&lt;br/&gt;(2) Do something like in the multi-Language-IAT script available at &lt;a href="https://www.millisecond.com/download/library/IAT/"&gt;https://www.millisecond.com/download/library/IAT/&lt;/a&gt; (direct link: &lt;a href="https://www.millisecond.com/download/library/v4/IAT/MultilanguageIAT/IAT_Multilanguage.iqx"&gt;https://www.millisecond.com/download/library/v4/IAT/MultilanguageIAT/IAT_Multilanguage.iqx&lt;/a&gt; ). Whether you select a language and administer different items as a consequence or, as in your case, a condition / set indicator and administer different items based on that amounts to the exact same thing.&lt;br/&gt;&lt;br/&gt;&amp;gt; Would it be then possible to save in the data in a format that save all the 40 items per block even if the block finishes at trial number 36 &lt;br/&gt;&amp;gt; for example?&lt;br/&gt;&lt;br/&gt;No, and I'm not clear why that would be necessary or desirable. Can you explain?&lt;br/&gt;&lt;h4 style="margin: 0px"&gt;&lt;br/&gt;&lt;/h4&gt;</description><pubDate>Thu, 27 Oct 2016 07:53:46 GMT</pubDate><dc:creator>Dave</dc:creator></item></channel></rss>