﻿<?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  » Random assignment to groups/conditions + counterbalancing</title><generator>InstantForum 2017-1 Final</generator><description>Millisecond Forums</description><link>https://forums.millisecond.com/</link><webMaster>Millisecond Forums</webMaster><lastBuildDate>Thu, 14 May 2026 10:29:47 GMT</lastBuildDate><ttl>20</ttl><item><title>Random assignment to groups/conditions + counterbalancing</title><link>https://forums.millisecond.com/Topic19557.aspx</link><description>I am conducting a study in which participants need to be assigned to one of 8 conditions. &amp;nbsp;Within each of these conditions, I need to counterbalance the order of presentation of two items (with two levels each). &amp;nbsp;I am trying to determine the best way of accomplishing this. &amp;nbsp;As of now, I have created 32 experiments. &lt;br/&gt;&lt;br/&gt;For example:&lt;br/&gt;&lt;br/&gt;&amp;lt;expt Condition1&amp;gt;&lt;br/&gt;/ preinstructions = (intropage)&lt;br/&gt;/ groupassignment = random&lt;br/&gt;/ subjects = (1 of 32)&lt;br/&gt;/ blocks = [1=InfoTarget1; 2=Faceblock; 3=Fillerblock; 4=Presentation1CounterbalanceOrder1; 5=Presentation2CounterbalanceOrder1]&lt;br/&gt;&amp;lt;/expt&amp;gt;&lt;br/&gt;&lt;br/&gt;I have two main questions:&lt;br/&gt;&lt;br/&gt;1. If all I was looking to do was, indeed, to randomly assign participants to one of 32 conditions, would this (above) work? &amp;nbsp;And if so, is it correct that for a Web Script, I could select "subject ids should be generated via URL parameter" (participants will be randomly assigned to a subjectid in Qualtrics, and this will be included in the Inquisit Link) and "group id should be determined via Random Selection Without Replacement"?&lt;br/&gt;&lt;br/&gt;2. Is there a better way to do the counterbalancing &lt;span style="font-style: italic;"&gt;within &lt;/span&gt;conditions so that I do not need to create 32 distinct conditions (and could instead include 8 conditions with 2 order variables with 2 levels each counterbalanced within each condition)?&lt;br/&gt;&lt;br/&gt;Thank you in advance for your help!&lt;br/&gt;&lt;br/&gt;-Natalie&lt;br/&gt;</description><pubDate>Wed, 24 Aug 2016 14:46:35 GMT</pubDate><dc:creator>nmwyale</dc:creator></item><item><title>RE: Random assignment to groups/conditions + counterbalancing</title><link>https://forums.millisecond.com/Topic19562.aspx</link><description>Qualtrics generates a unique participant ID automatically -- most people will want to share that ID with Inquisit Web (by having Qualtrics forward its ID to the Inquisit launch page via a URL query parameter), which obliterates the need for having Qualtrics generate some random numerical value. &lt;br/&gt;&lt;br/&gt;See the "How to interoperate Inquisit Web with online survey packages" topic in the documentation for information re. the Inquisit-side of things, and see the links to the pertinent topics in the Qualtrics documentation in this post: &lt;a href="https://www.millisecond.com/forums/FindPost12409.aspx"&gt;https://www.millisecond.com/forums/FindPost12409.aspx&lt;/a&gt;&lt;br/&gt;</description><pubDate>Wed, 24 Aug 2016 14:46:35 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: Random assignment to groups/conditions + counterbalancing</title><link>https://forums.millisecond.com/Topic19561.aspx</link><description>Thank you, Dave. &amp;nbsp;This is quite helpful. &amp;nbsp;I will change "random" to "groupnumber," have groupnumber generated randomly, and use the&amp;nbsp;group = ((groupid - 1) % groupcount) + 1 formula to determine which group a given participant was assigned to (1, 2, 3, ... 30, 31, or 32).&lt;br/&gt;&lt;br/&gt;To clarify: When I said "participants will be randomly assigned to a subjectid in Qualtrics," what I meant was that I have added a random number generator to Qualtrics, which will assign a number between&amp;nbsp;1,000,000,000 and 9,999,999,999 labeled "subjectid." &amp;nbsp;Is it okay to use that rather than "Have Qualtrics forward its ID via a query parameter and have the Inquisit Web experiment retrieve its value and use it as subject id as you planned"? &amp;nbsp;(I'm a bit confused about the latter option.)&lt;br/&gt;&lt;br/&gt;Thanks again.</description><pubDate>Wed, 24 Aug 2016 14:23:36 GMT</pubDate><dc:creator>nmwyale</dc:creator></item><item><title>RE: Random assignment to groups/conditions + counterbalancing</title><link>https://forums.millisecond.com/Topic19558.aspx</link><description>#1: Qualtrics-generated IDs are not numerical (but alphanumerical), and hence are unsuitable for condition assignment. You should&lt;br/&gt;(a) Have Qualtrics forward its ID via a query parameter and have the Inquisit Web experiment retrieve its value and use it as subject id as you planned, but&lt;br/&gt;(b) Change your &amp;lt;expt&amp;gt; /groupassignment method to groupnumber instead of random:&lt;br/&gt;&lt;br/&gt;&amp;lt;expt Condition1&amp;gt;&lt;br/&gt;/ preinstructions = (intropage)&lt;br/&gt;&lt;strong&gt;/ groupassignment = groupnumber&lt;/strong&gt;&lt;br/&gt;/ subjects = (1 of 32)&lt;br/&gt;/ blocks = [1=InfoTarget1; 2=Faceblock; 3=Fillerblock; 4=Presentation1CounterbalanceOrder1; 5=Presentation2CounterbalanceOrder1]&lt;br/&gt;&amp;lt;/expt&amp;gt;&lt;br/&gt;&lt;br/&gt;In your web experiment's settings select the groupnumbers to be generated either randomly or sequentially (those are simply choices from a dropdown menu when you upload and configure your script to your Inquisit Web account). &lt;br/&gt;&lt;br/&gt;The above will ensure that (1) a participant will be randomly assigned to one of the 32 conditions, and (b) that there's a relationship between the administered condition and the generated groupnumber (i.e., you can determine which condition was administered by looking at the groupnumber): &lt;a href="https://www.millisecond.com/forums/Topic13856.aspx"&gt;https://www.millisecond.com/forums/Topic13856.aspx&lt;/a&gt;&lt;br/&gt;&lt;br/&gt;#2: No, I don't think there is a better way in this case. Your counterbalancing factors are between-subjects just like the 8-level main factor. I.e., you end up with 8 x 2 x 2 = 32 conditions.&lt;br/&gt;&lt;br/&gt;Hope this helps.&lt;br/&gt;</description><pubDate>Wed, 24 Aug 2016 12:54:31 GMT</pubDate><dc:creator>Dave</dc:creator></item></channel></rss>