﻿<?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 5  » noreplace in categorization 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 02:04:18 GMT</lastBuildDate><ttl>20</ttl><item><title>noreplace in categorization task</title><link>https://forums.millisecond.com/Topic19480.aspx</link><description>Currently working on a categorization task in which people have to indicate for every picture of a face whether the face has a sad or an angry emotional expression.&lt;br/&gt;The experiment is working, but after collecting data in monkey mode I found out that in both testblocks (4 and 7) the pictures are not shown as I want them to.&lt;br/&gt;&lt;br/&gt;Within each block, the right number of pictures is shown (128 trials per block). Per block and within each category of pictures (16 categories), I want every picture to be shown 8 times. However, as of yet, this is not the case: per category, some pictures are shown 10 times, others 7, others 9.&lt;br/&gt;&lt;br/&gt;I have tried several things but I can't seem to get it to work the way I want it to.&lt;br/&gt;I don't have a lot of experience, so suggestions would be of great help!&lt;br/&gt;I added parts of the script below.&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item Male_Black_Sad.l&amp;gt;&lt;br/&gt;/1 = "38M_SA_C.bmp"&lt;br/&gt;/2 = "39M_SA_C.bmp"&lt;br/&gt;/3 = "42M_SA_C.bmp"&lt;br/&gt;/4 = "41M_SA_C.bmp"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture Male_Black_Sad.l&amp;gt;&lt;br/&gt;/items = Male_Black_Sad.l&lt;br/&gt;/ position = (50,50)&lt;br/&gt;/ size = (375, 375)&lt;br/&gt;/ select = noreplace&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial Male_Black_Sad_l&amp;gt;&lt;br/&gt;/ pretrialpause = 200&lt;br/&gt;/ stimulustimes=[0=fixation, reminder_left, reminder_right; 300=Male_Black_Sad.l; 500=blank]&lt;br/&gt;/ correctresponse = ("a")&lt;br/&gt;/ errormessage = true(error,400)&lt;br/&gt;/ validresponse = ("a", "l")&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block AngrySad&amp;gt;&lt;br/&gt;/ preinstructions = (test, test_AngrySad)&lt;br/&gt;/ trials = [1-128 = noreplace(Female_Black_Angry_l, Female_White_Angry_l, Male_Black_Angry_l, Male_White_Angry_l, Female_Black_Sad_r, Female_White_Sad_r, Male_Black_Sad_r, Male_White_Sad_r)]&lt;br/&gt;/ onblockbegin = [values.reminder_left = "Angry"; values.reminder_right = "Sad"]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;expt&amp;gt;&lt;br/&gt;/ preinstructions = (Instructions1, Instructions2, Instructions3)&lt;br/&gt;/ blocks = [1 = Prime_Black_vs_White; 2 = Instructions4; 3 = AngrySad_practice; 4 = AngrySad; 5 = between; 6 = SadAngry_practice; 7 = SadAngry; 8 = end]&lt;br/&gt;/ subjects = (1 of 4)&lt;br/&gt;&amp;lt;/expt&amp;gt;&lt;br/&gt;</description><pubDate>Tue, 09 Aug 2016 07:21:58 GMT</pubDate><dc:creator>Desiree</dc:creator></item><item><title>RE: noreplace in categorization task</title><link>https://forums.millisecond.com/Topic19496.aspx</link><description>&lt;span style="color: rgb(136, 136, 136); font-family: Arial; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; line-height: 24px; 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; background-color: rgb(255, 255, 255);"&gt;The &amp;lt;picture&amp;gt; element will sample its four items randomly without replacement ("noreplace")&lt;br/&gt;&lt;br/&gt;&amp;lt;picture &lt;strong&gt;Male_Black_Sad.l&lt;/strong&gt;&amp;gt;&lt;/span&gt;&lt;span style="color: rgb(136, 136, 136); font-family: Arial; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; line-height: 24px; 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; background-color: rgb(255, 255, 255);"&gt;/items = Male_Black_Sad.l&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(136, 136, 136); font-family: Arial; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; line-height: 24px; 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; background-color: rgb(255, 255, 255);"&gt;/ position = (50,50)&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(136, 136, 136); font-family: Arial; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; line-height: 24px; 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; background-color: rgb(255, 255, 255);"&gt;/ size = (375, 375)&lt;br/&gt;&lt;/span&gt;&lt;span style="text-decoration: underline;"&gt;&lt;span style="font-style: italic;"&gt;&lt;strong&gt;&lt;span style="color: rgb(136, 136, 136); font-family: Arial; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; line-height: 24px; 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; background-color: rgb(255, 255, 255);"&gt;/ select = noreplace&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(136, 136, 136); font-family: Arial; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; line-height: 24px; 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; background-color: rgb(255, 255, 255);"&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;/span&gt;&amp;lt;item Male_Black_Sad.l&amp;gt;&lt;br/&gt;/1 = "38M_SA_C.bmp"&lt;br/&gt;/2 = "39M_SA_C.bmp"&lt;br/&gt;/3 = "42M_SA_C.bmp"&lt;br/&gt;/4 = "41M_SA_C.bmp"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;If you have one &amp;lt;trial&amp;gt; displaying that &amp;lt;picture&amp;gt; &lt;br/&gt;&lt;br/&gt;&amp;lt;trial Male_Black_Sad_l&amp;gt;&lt;br/&gt;/ pretrialpause = 200&lt;br/&gt;/ stimulustimes=[0=fixation, reminder_left, reminder_right; 300=&lt;strong&gt;Male_Black_Sad.l&lt;/strong&gt;; 500=blank]&lt;br/&gt;/ correctresponse = ("a")&lt;br/&gt;/ errormessage = true(error,400)&lt;br/&gt;/ validresponse = ("a", "l")&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;and run 16 instances of that trial in a &amp;lt;block&amp;gt;, each of the 4 items will be displayed 4 times.&lt;br/&gt;&lt;br/&gt;Just do &lt;br/&gt;&lt;br/&gt;&amp;lt;block someblock&amp;gt;&lt;br/&gt;/ trials = [1-16 =  Male_Black_Sad_l]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;to see this for yourself.&lt;br/&gt;&lt;br/&gt;&amp;gt;  My problem however, is that not every stimulus is presented equally across participants. So, for example, one participant sees one &lt;br/&gt;&amp;gt; Female_White_Angry_l stimulus (picture) 4 times, while the other participants sees it 5 times. &lt;br/&gt;&lt;br/&gt;This, then, means you have one or several mistakes somewhere in your script. You either have *multiple* &amp;lt;trial&amp;gt; elements that display the same &amp;lt;picture&amp;gt;, some &amp;lt;picture&amp;gt; elements referencing the wrong &amp;lt;item&amp;gt; element, or the wrong items listed in the &amp;lt;item&amp;gt; element itself.&lt;br/&gt;&lt;br/&gt;I recommend you go through your script with a fine-toothed comb to find those mistakes.&lt;br/&gt;</description><pubDate>Tue, 09 Aug 2016 07:21:58 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: noreplace in categorization task</title><link>https://forums.millisecond.com/Topic19495.aspx</link><description>I am so sorry - I included the wrong block.&lt;br/&gt;This is the block I intended to include:&lt;br/&gt;&lt;br/&gt;&amp;lt;block SadAngry&amp;gt;&lt;br/&gt;/ preinstructions = (test, test_SadAngry)&lt;br/&gt;/ trials = [1-128 = noreplace(Female_Black_Sad_l, Female_White_Sad_l, Male_Black_Sad_l, Male_White_Sad_l, Female_Black_Angry_r, Female_White_Angry_r, Male_Black_Angry_r, Male_White_Angry_r)]&lt;br/&gt;/ onblockbegin = [values.reminder_left = "Sad"; values.reminder_right = "Angry"]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;Responding to this:&amp;nbsp;&lt;br/&gt;&lt;span style="color: rgb(136, 136, 136); font-family: Arial; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; line-height: 24px; 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; background-color: rgb(255, 255, 255);"&gt;"What that /trials attribute will do is run a total of&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(136, 136, 136); font-family: Arial; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; line-height: 24px; 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; background-color: rgb(255, 255, 255);"&gt;16 Female_Black_Angry_l trials,&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(136, 136, 136); font-family: Arial; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; line-height: 24px; 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; background-color: rgb(255, 255, 255);"&gt;16 Female_White_Angry_l trials,&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(136, 136, 136); font-family: Arial; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; line-height: 24px; 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; background-color: rgb(255, 255, 255);"&gt;16 Male_Black_Angry_l trials,&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(136, 136, 136); font-family: Arial; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; line-height: 24px; 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; background-color: rgb(255, 255, 255);"&gt;16 Male_White_Angry_l trials,&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(136, 136, 136); font-family: Arial; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; line-height: 24px; 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; background-color: rgb(255, 255, 255);"&gt;16 Female_Black_Sad_r trials,&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(136, 136, 136); font-family: Arial; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; line-height: 24px; 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; background-color: rgb(255, 255, 255);"&gt;16 Female_White_Sad_r trials,&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(136, 136, 136); font-family: Arial; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; line-height: 24px; 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; background-color: rgb(255, 255, 255);"&gt;16 Male_Black_Sad_r trials, and&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(136, 136, 136); font-family: Arial; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; line-height: 24px; 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; background-color: rgb(255, 255, 255);"&gt;16 Male_White_Sad_r trials&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(136, 136, 136); font-family: Arial; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; line-height: 24px; 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; background-color: rgb(255, 255, 255);"&gt;in random order. How those trials sample from any stimulus elements is an entirely different matter."&lt;br/&gt;&lt;/span&gt;&lt;br/&gt;This is indeed what happens. My problem however, is that not every stimulus is presented equally across participants. So, for example, one participant sees one Female_White_Angry_l stimulus (picture) 4 times, while the other participants sees it 5 times.&amp;nbsp;&lt;br/&gt;&lt;br/&gt;I thought this meant that something is wrong with the picture element:&lt;br/&gt;&lt;span style="color: rgb(136, 136, 136); font-family: Arial; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; line-height: 24px; 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; background-color: rgb(255, 255, 255);"&gt;&amp;lt;picture Male_Black_Sad.l&amp;gt;&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(136, 136, 136); font-family: Arial; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; line-height: 24px; 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; background-color: rgb(255, 255, 255);"&gt;/items = Male_Black_Sad.l&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(136, 136, 136); font-family: Arial; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; line-height: 24px; 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; background-color: rgb(255, 255, 255);"&gt;/ position = (50,50)&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(136, 136, 136); font-family: Arial; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; line-height: 24px; 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; background-color: rgb(255, 255, 255);"&gt;/ size = (375, 375)&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(136, 136, 136); font-family: Arial; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; line-height: 24px; 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; background-color: rgb(255, 255, 255);"&gt;/ select = noreplace&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(136, 136, 136); font-family: Arial; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; line-height: 24px; 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; background-color: rgb(255, 255, 255);"&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;/span&gt;&lt;br/&gt;But I have no idea what I have to change in order to get it to work right..</description><pubDate>Tue, 09 Aug 2016 04:36:12 GMT</pubDate><dc:creator>Desiree</dc:creator></item><item><title>RE: noreplace in categorization task</title><link>https://forums.millisecond.com/Topic19481.aspx</link><description>I'm not sure what the relevance of the code snippets you posted is supposed to be.&lt;br/&gt;&lt;br/&gt;The block you included&lt;br/&gt;&lt;br/&gt;&amp;lt;block AngrySad&amp;gt;&lt;br/&gt;...&lt;br/&gt;/ trials = [1-128 = noreplace(Female_Black_Angry_l, Female_White_Angry_l, Male_Black_Angry_l, Male_White_Angry_l, Female_Black_Sad_r, Female_White_Sad_r, Male_Black_Sad_r, Male_White_Sad_r)]&lt;br/&gt;...&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;does not even run the &amp;lt;trial&amp;gt; you included&lt;br/&gt;&lt;br/&gt;&amp;lt;trial Male_Black_Sad_l&amp;gt;&lt;br/&gt;/ pretrialpause = 200&lt;br/&gt;/ stimulustimes=[0=fixation, reminder_left, reminder_right; 300=Male_Black_Sad.l; 500=blank]&lt;br/&gt;/ correctresponse = ("a")&lt;br/&gt;/ errormessage = true(error,400)&lt;br/&gt;/ validresponse = ("a", "l")&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;Male_Black_Sad_l is nowhere to be found in&lt;br/&gt;&lt;br/&gt;/ trials = [1-128 = noreplace(Female_Black_Angry_l, Female_White_Angry_l, Male_Black_Angry_l, Male_White_Angry_l, Female_Black_Sad_r, Female_White_Sad_r, Male_Black_Sad_r, Male_White_Sad_r)]&lt;br/&gt;&lt;br/&gt;What that /trials attribute will do is run a total of&lt;br/&gt;&lt;br/&gt;16 Female_Black_Angry_l trials,&lt;br/&gt;16 Female_White_Angry_l trials,&lt;br/&gt;16  Male_Black_Angry_l trials,&lt;br/&gt;16  Male_White_Angry_l trials,&lt;br/&gt;16 Female_Black_Sad_r trials,&lt;br/&gt;16  Female_White_Sad_r trials,&lt;br/&gt;16 Male_Black_Sad_r trials, and&lt;br/&gt;16 Male_White_Sad_r trials&lt;br/&gt;&lt;br/&gt;in random order. How those trials sample from any stimulus elements is an entirely different matter.&lt;br/&gt;&lt;br/&gt;Please see &lt;a href="https://www.millisecond.com/forums/FindPost14400.aspx"&gt;https://www.millisecond.com/forums/FindPost14400.aspx&lt;/a&gt; which should hopefully clarify how one can think about *trial* selection vs. stimulus selection.&lt;br/&gt;&lt;br/&gt;</description><pubDate>Fri, 05 Aug 2016 07:26:15 GMT</pubDate><dc:creator>Dave</dc:creator></item></channel></rss>