﻿<?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  » Randomization error</title><generator>InstantForum 2017-1 Final</generator><description>Millisecond Forums</description><link>https://forums.millisecond.com/</link><webMaster>Millisecond Forums</webMaster><lastBuildDate>Wed, 16 Sep 2026 07:34:28 GMT</lastBuildDate><ttl>20</ttl><item><title>Randomization error</title><link>https://forums.millisecond.com/Topic29682.aspx</link><description>Hi everyone,&lt;br/&gt;&lt;br/&gt;I hope anybody can help me with a maybe somewhat complex problem. I am working on a script in which a total number of 28 profile pages have to be shown to the participants. These pages should contain completely randomized (without replacement) information which are: 1) a foto, 2) firstname, 3) final grade, 4) department, 5) room number. However, the foto and the grade have to combined half systematically, half randomized without replacement. What I need is to have 7 blonde persons having good grades, 7 blonde with bad grades, 7 brunette with good grades and 7 brunette with bad grades. Therefore, I created two item lists in Inquisit for blonde and for brunette (in each item list 14 fotos) and four item lists: two for 7 good  grades (one list for brunette and one list for blonde) and two for 7 bad grades (also one list for brunette and one list for blonde). The rest (firstnames, department and room number) is in one list each with 28 stimuli. To give an example, in the list I have written the following (here for blonde fotos. The same holds for brunette and for the final grades):&lt;br/&gt;&lt;br/&gt;&lt;i&gt;&amp;lt;item hairbl1&amp;gt;&lt;br/&gt;/ 1 = "blond1.jpg"&lt;br/&gt;/ 2 = "blond2.jpg"&lt;br/&gt;…&lt;br/&gt;/ 14 = "blond14.jpg"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;/i&gt;&lt;br/&gt;&lt;br/&gt;&lt;i&gt;&amp;lt;list hairbl2&amp;gt;&lt;br/&gt;/ poolsize = 14&lt;br/&gt;/ selectionmode = random&lt;br/&gt;/ replace = false&lt;br/&gt;/ selectionrate = always&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;/i&gt;&lt;br/&gt;These lists are converted into profile elements as following:&lt;br/&gt;&lt;br/&gt;&lt;i&gt;&amp;lt;picture hairbl3&amp;gt;&lt;br/&gt;/ items = hairbl1&lt;br/&gt;/ select = list.hairbl2.nextindex&lt;br/&gt;/ position = (30,45)&lt;br/&gt;/ size = (70%, 70%)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;/i&gt;&lt;br/&gt;&lt;br/&gt;Then, my block looks like this:&lt;br/&gt;&lt;br/&gt;&lt;i&gt;&amp;lt;block task2&amp;gt;&lt;br/&gt;/ preinstructions = (main_intro)&lt;br/&gt;/ trials = [1-28=noreplace(trial.blondesm,trial.blondedb,trial.brunsm,trial.brundb)]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;/i&gt;&lt;br/&gt;&lt;br/&gt;As you can see, I have four different trials (blonde good grades, blonde bad grades, brunette good grades, brunette bad grades) which are randomized without replacement in the block. My trials therefore look like this (this is the one for blonde good grades):&lt;br/&gt;&lt;br/&gt;&lt;i&gt;&amp;lt;trial blondesm&amp;gt;&lt;br/&gt;/ ontrialbegin = [&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;values.trialblsm = values.trialblsm + 1;&lt;br/&gt;]&lt;br/&gt;/ numframes = 9&lt;br/&gt;/ stimulusframes = [1=firstname4; 2=grade4; 3=depart4; 4=room4; 5=noreplace(text.firstname3); 6=noreplace(text.depart3); 7=noreplace(text.room3); 8=noreplace(text.gradeblsm3); 9=noreplace(picture.hairbl3)]&lt;br/&gt;/ timeout = 1000&lt;br/&gt;/ ontrialend = [&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;values.target = picture.hairbl3.currentitem;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;values.firstname = text.firstname3.currentitem;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;values.grade = text.gradeblsm3.currentitem;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;values.depart = text.depart3.currentitem;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;values.room = text.room3.currentitem;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;]&lt;br/&gt;/ branch=[if (trial.blondesm.latency &amp;gt; 1) surveypage.licoco]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;/i&gt;&lt;br/&gt;&lt;br/&gt;And finally, as values I defined at the beginning of the script: &lt;br/&gt;&lt;br/&gt;&lt;i&gt;&amp;lt;values &amp;gt;&lt;br/&gt;/ trialblsm = 0&lt;br/&gt;/ trialbldb = 0&lt;br/&gt;/ trialbrsm = 0&lt;br/&gt;/ trialbrdb = 0&lt;br/&gt;/ target = 0&lt;br/&gt;/ firstname = 0&lt;br/&gt;/ grade = 0&lt;br/&gt;/ depart = 0&lt;br/&gt;/ room = 0&lt;br/&gt;&amp;lt;/values&amp;gt;&lt;/i&gt;&lt;br/&gt;&lt;br/&gt;Having collected some test data, I noticed that there are some fotos that are shown more than once so the randomization without replacement apparently did not work. Furthermore, I am not sure if the correct stimulus name is actually written into the values column. For example, I doubt that the name of the foto (e.g. „blond01“) that can be found in the value column (here „target“) is really the foto that the participant has seen.&lt;br/&gt;&lt;br/&gt;Has anybody an idea what went wrong? I would be happy if somebody can help me. Thank you in advance!!&lt;br/&gt;&lt;br/&gt;Best wishes&lt;br/&gt;</description><pubDate>Thu, 10 Sep 2020 14:40:10 GMT</pubDate><dc:creator>dnaber</dc:creator></item><item><title>RE: Randomization error</title><link>https://forums.millisecond.com/Topic29683.aspx</link><description>&lt;blockquote data-id="29682" class="if-quote-wrapper" unselectable="on" data-guid="1599748785473" id="if_insertedNode_1599748785072" contenteditable="false"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="29682" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="29682" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="29682" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;dnaber - 9/10/2020&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-29682"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;Hi everyone,&lt;br/&gt;&lt;br/&gt;I hope anybody can help me with a maybe somewhat complex problem. I am working on a script in which a total number of 28 profile pages have to be shown to the participants. These pages should contain completely randomized (without replacement) information which are: 1) a foto, 2) firstname, 3) final grade, 4) department, 5) room number. However, the foto and the grade have to combined half systematically, half randomized without replacement. What I need is to have 7 blonde persons having good grades, 7 blonde with bad grades, 7 brunette with good grades and 7 brunette with bad grades. Therefore, I created two item lists in Inquisit for blonde and for brunette (in each item list 14 fotos) and four item lists: two for 7 good  grades (one list for brunette and one list for blonde) and two for 7 bad grades (also one list for brunette and one list for blonde). The rest (firstnames, department and room number) is in one list each with 28 stimuli. To give an example, in the list I have written the following (here for blonde fotos. The same holds for brunette and for the final grades):&lt;br/&gt;&lt;br/&gt;&lt;i&gt;&amp;lt;item hairbl1&amp;gt;&lt;br/&gt;/ 1 = "blond1.jpg"&lt;br/&gt;/ 2 = "blond2.jpg"&lt;br/&gt;…&lt;br/&gt;/ 14 = "blond14.jpg"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;/i&gt;&lt;br/&gt;&lt;br/&gt;&lt;i&gt;&amp;lt;list hairbl2&amp;gt;&lt;br/&gt;/ poolsize = 14&lt;br/&gt;/ selectionmode = random&lt;br/&gt;/ replace = false&lt;br/&gt;/ selectionrate = always&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;/i&gt;&lt;br/&gt;These lists are converted into profile elements as following:&lt;br/&gt;&lt;br/&gt;&lt;i&gt;&amp;lt;picture hairbl3&amp;gt;&lt;br/&gt;/ items = hairbl1&lt;br/&gt;/ select = list.hairbl2.nextindex&lt;br/&gt;/ position = (30,45)&lt;br/&gt;/ size = (70%, 70%)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;/i&gt;&lt;br/&gt;&lt;br/&gt;Then, my block looks like this:&lt;br/&gt;&lt;br/&gt;&lt;i&gt;&amp;lt;block task2&amp;gt;&lt;br/&gt;/ preinstructions = (main_intro)&lt;br/&gt;/ trials = [1-28=noreplace(trial.blondesm,trial.blondedb,trial.brunsm,trial.brundb)]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;/i&gt;&lt;br/&gt;&lt;br/&gt;As you can see, I have four different trials (blonde good grades, blonde bad grades, brunette good grades, brunette bad grades) which are randomized without replacement in the block. My trials therefore look like this (this is the one for blonde good grades):&lt;br/&gt;&lt;br/&gt;&lt;i&gt;&amp;lt;trial blondesm&amp;gt;&lt;br/&gt;/ ontrialbegin = [&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;values.trialblsm = values.trialblsm + 1;&lt;br/&gt;]&lt;br/&gt;/ numframes = 9&lt;br/&gt;/ stimulusframes = [1=firstname4; 2=grade4; 3=depart4; 4=room4; 5=noreplace(text.firstname3); 6=noreplace(text.depart3); 7=noreplace(text.room3); 8=noreplace(text.gradeblsm3); 9=noreplace(picture.hairbl3)]&lt;br/&gt;/ timeout = 1000&lt;br/&gt;/ ontrialend = [&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;values.target = picture.hairbl3.currentitem;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;values.firstname = text.firstname3.currentitem;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;values.grade = text.gradeblsm3.currentitem;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;values.depart = text.depart3.currentitem;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;values.room = text.room3.currentitem;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;]&lt;br/&gt;/ branch=[if (trial.blondesm.latency &amp;gt; 1) surveypage.licoco]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;/i&gt;&lt;br/&gt;&lt;br/&gt;And finally, as values I defined at the beginning of the script: &lt;br/&gt;&lt;br/&gt;&lt;i&gt;&amp;lt;values &amp;gt;&lt;br/&gt;/ trialblsm = 0&lt;br/&gt;/ trialbldb = 0&lt;br/&gt;/ trialbrsm = 0&lt;br/&gt;/ trialbrdb = 0&lt;br/&gt;/ target = 0&lt;br/&gt;/ firstname = 0&lt;br/&gt;/ grade = 0&lt;br/&gt;/ depart = 0&lt;br/&gt;/ room = 0&lt;br/&gt;&amp;lt;/values&amp;gt;&lt;/i&gt;&lt;br/&gt;&lt;br/&gt;Having collected some test data, I noticed that there are some fotos that are shown more than once so the randomization without replacement apparently did not work. Furthermore, I am not sure if the correct stimulus name is actually written into the values column. For example, I doubt that the name of the foto (e.g. „blond01“) that can be found in the value column (here „target“) is really the foto that the participant has seen.&lt;br/&gt;&lt;br/&gt;Has anybody an idea what went wrong? I would be happy if somebody can help me. Thank you in advance!!&lt;br/&gt;&lt;br/&gt;Best wishes&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="29682"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/blockquote&gt;&lt;br/&gt;Please provide the full script and all files it requires to run.</description><pubDate>Thu, 10 Sep 2020 14:40:10 GMT</pubDate><dc:creator>Dave</dc:creator></item></channel></rss>