﻿<?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  » ensuring an even and random distribution</title><generator>InstantForum 2017-1 Final</generator><description>Millisecond Forums</description><link>https://forums.millisecond.com/</link><webMaster>Millisecond Forums</webMaster><lastBuildDate>Mon, 25 May 2026 05:00:19 GMT</lastBuildDate><ttl>20</ttl><item><title>ensuring an even and random distribution</title><link>https://forums.millisecond.com/Topic16572.aspx</link><description>Hello,&lt;br/&gt;&lt;br/&gt;My current experiment is being programmed to be used on the Millisecond server. I have 6 potential conditions into which a participant may be placed. I have 6 experiments all of which are set up using "/subjects = (integer of 6)". My experiment requires screening questions. If the participants do meet them the experiment is terminated. &lt;br/&gt;&lt;br/&gt;These questions are included in the same script as the rest of my experiment, therefore the subject ID is determined before it is determined whether or not a given participant is even eligible for the experiment.&lt;br/&gt;&lt;br/&gt;&amp;nbsp;I am concerned , even though subject ID numbers are being generated randomly, that I will not end up with an even distribution of participants in my conditions (so far my pilot data ended up with only 1 of 20 subjects in one of my conditions). I just want to make sure that there is not a better way to be assigning the conditions that will ensure a more even distribution.</description><pubDate>Tue, 23 Jun 2015 14:20:04 GMT</pubDate><dc:creator>mlleng13</dc:creator></item><item><title>RE: ensuring an even and random distribution</title><link>https://forums.millisecond.com/Topic16575.aspx</link><description>Subject number is *not* the only way to assign conditions. There is also group number. Let's say, for the sake of example, you have 4 conditions and have recruited 80 participants. You'd set up your script like this&lt;br/&gt;&lt;br/&gt;&amp;lt;expt&amp;gt;&lt;br/&gt;/ onexptbegin = [values.mycondition=1]&lt;br/&gt;&lt;strong&gt;/ subjects = (1 of 4)&lt;br/&gt;/ groupassignment = groupnumber&lt;/strong&gt;&lt;br/&gt;/ blocks = [1=myblock]&lt;br/&gt;&amp;lt;/expt&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;expt&amp;gt;&lt;br/&gt;/ onexptbegin = [values.mycondition=2]&lt;br/&gt;&lt;strong&gt;/ subjects = (2 of 4)&lt;br/&gt;/ groupassignment = groupnumber&lt;/strong&gt;&lt;br/&gt;/ blocks = [1=myblock]&lt;br/&gt;&amp;lt;/expt&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;expt&amp;gt;&lt;br/&gt;/ onexptbegin = [values.mycondition=3]&lt;br/&gt;&lt;strong&gt;/ subjects = (3 of 4)&lt;br/&gt;/ groupassignment = groupnumber&lt;/strong&gt;&lt;br/&gt;/ blocks = [1=myblock]&lt;br/&gt;&amp;lt;/expt&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;expt&amp;gt;&lt;br/&gt;/ onexptbegin = [values.mycondition=4]&lt;br/&gt;&lt;strong&gt;/ subjects = (4 of 4)&lt;br/&gt;/ groupassignment = groupnumber&lt;/strong&gt;&lt;br/&gt;/ blocks = [1=myblock]&lt;br/&gt;&amp;lt;/expt&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block myblock&amp;gt;&lt;br/&gt;/ trials = [1=mytrial]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial mytrial&amp;gt;&lt;br/&gt;/ stimulusframes = [1=mytext]&lt;br/&gt;/ validresponse = (57)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text mytext&amp;gt;&lt;br/&gt;/ items = ("This is condition #&amp;lt;%values.mycondition%&amp;gt;. Your subject id is &amp;lt;%script.subjectid%&amp;gt;. Press the spacebar.")&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;values&amp;gt;&lt;br/&gt;/ mycondition = 0&lt;br/&gt;&amp;lt;/values&amp;gt;&lt;br/&gt;&lt;br/&gt;and pass the condition (i.e. group number) to the launch page via a query parameter. I.e., you'd give 20 random participants the following link&lt;br/&gt;&lt;br/&gt;&lt;a href="http://research.millisecond.com/david.nitz/conditionassignment.web?condition=1"&gt;http://research.millisecond.com/david.nitz/conditionassignment.web?condition=1&lt;/a&gt;&lt;br/&gt;&lt;br/&gt;another 20 the following&lt;br/&gt;&lt;br/&gt;&lt;a href="http://research.millisecond.com/david.nitz/conditionassignment.web?condition=2"&gt;http://research.millisecond.com/david.nitz/conditionassignment.web?condition=2&lt;/a&gt;&lt;br/&gt;&lt;br/&gt;yet another 20 the following&lt;br/&gt;&lt;br/&gt;&lt;a href="http://research.millisecond.com/david.nitz/conditionassignment.web?condition=3"&gt;http://research.millisecond.com/david.nitz/conditionassignment.web?condition=3&lt;/a&gt;&lt;br/&gt;&lt;br/&gt;and the final 20 &lt;br/&gt;&lt;br/&gt;&lt;a href="http://research.millisecond.com/david.nitz/conditionassignment.web?condition=4"&gt;http://research.millisecond.com/david.nitz/conditionassignment.web?condition=4&lt;/a&gt;&lt;br/&gt;&lt;br/&gt;The idea here is two-fold: (1) It's unlikely that most ineligible participants fall into one particular condition. (2) Since you control which link you give out, you can fill up conditions as needed. I.e., in case you "lost" 5 participants in condition 3 due to ineligibility, you can simply give the link &lt;br/&gt;&lt;br/&gt;&lt;a href="http://research.millisecond.com/david.nitz/conditionassignment.web?condition=3"&gt;http://research.millisecond.com/david.nitz/conditionassignment.web?condition=3&lt;/a&gt;&lt;br/&gt;&lt;br/&gt;to a few more people.&lt;br/&gt;&lt;br/&gt;Beyond that it is *not* possible to have Inquisit determine subject or group ids after the procedure has already started. Inquisit needs those to work from the start. The only other option would be to determine eligibility outside of Inquisit as mentioned in the previous response.&lt;br/&gt;&lt;br/&gt;Hope this clarifies.&lt;br/&gt;</description><pubDate>Tue, 23 Jun 2015 14:20:04 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: ensuring an even and random distribution</title><link>https://forums.millisecond.com/Topic16574.aspx</link><description>Hello Dave,&lt;br/&gt;&lt;br/&gt;I am slightly confused by your first proposed solution. Essentially, my problem stems from the fact that I would prefer "to assign a subject ID after the screening", to put it simply, even though I know this is illogical. The only reason I need to do this, however, is because (as far as I am currently aware) the only way to randomize assignment is by using the subject ID. In other words, I do not know of a way to randomly assign participants to conditions without using a subject ID BUT the subject ID is determined before I would like it to be because some participants are deemed ineligible for the study even though, in the grand scheme of randomness they have technically "balanced" the distribution of the assignments. It is not the ID it self that I am wishing to change per se, rather the assignment function that seems to be inherently tied to the ID.&amp;nbsp;&lt;br/&gt;&lt;br/&gt;I am very sorry if this is confusing (because I am pretty sure it is). If anything is unclear I will try to clarify.&lt;br/&gt;&lt;br/&gt;</description><pubDate>Tue, 23 Jun 2015 12:51:20 GMT</pubDate><dc:creator>mlleng13</dc:creator></item><item><title>RE: ensuring an even and random distribution</title><link>https://forums.millisecond.com/Topic16573.aspx</link><description>Alternative options would be&lt;br/&gt;&lt;br/&gt;(1) Determine IDs beforehand and passing them to the launch page via a query parameter (you'd essentially give participants individualized links). &lt;br/&gt;(2) Conduct your screening questions via some web survey platform and use the platform's quota features to achieve equal distributions across conditions. The respective IDs would also be passed via query parameters.&lt;br/&gt;(3) Check your data regularly during the data collection phase and take conditions that are "full" down, leaving only those with too few participants.&lt;br/&gt;&lt;br/&gt;</description><pubDate>Tue, 23 Jun 2015 10:13:09 GMT</pubDate><dc:creator>Dave</dc:creator></item></channel></rss>