﻿<?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 6  » Counterbalancing by group and subject number</title><generator>InstantForum 2017-1 Final</generator><description>Millisecond Forums</description><link>https://forums.millisecond.com/</link><webMaster>Millisecond Forums</webMaster><lastBuildDate>Thu, 28 May 2026 21:29:50 GMT</lastBuildDate><ttl>20</ttl><item><title>Counterbalancing by group and subject number</title><link>https://forums.millisecond.com/Topic35638.aspx</link><description>Dear Millisecond community,&lt;br/&gt;&lt;br/&gt;I have programmed an experiment comprising 6 different experimental conditions. I would like to have these conditions counterbalanced within my 2 experimental groups, so that each condition is repeated an equal number of times within each group. I plan to have 82 participants in total, so 41 per each group.&lt;br/&gt;The code below assigns every 6th participant to a specific condition, the problem is that in the end, conditions are not equally distributed within the 2 groups. For example, condition 4 gets repeated 9 times in group 1 and only 5 times in group 2.&lt;br/&gt;&lt;br/&gt;Do you have any idea how I could modify the code so that each 6th participant is assigned to a specific condition within each group, and each condition is repeated an approximately equal number of times in both groups?&lt;br/&gt;&lt;br/&gt;I would really appreciate the help!&lt;br/&gt;&lt;br/&gt;&lt;img src="../Uploads/Images/2b9270f4-ea76-4326-b0d6-99a6.png" data-download-url="../Uploads/Images/2e1999f7-911d-4925-a29a-ce4b.png" id="if_insertedNode_1695133637969"&gt;</description><pubDate>Fri, 22 Sep 2023 11:42:39 GMT</pubDate><dc:creator>alexandra.vasilache</dc:creator></item><item><title>RE: Counterbalancing by group and subject number</title><link>https://forums.millisecond.com/Topic35651.aspx</link><description>&lt;blockquote data-id="35650" class="if-quote-wrapper" unselectable="on" data-guid="1695382906573" contenteditable="false" id="if_insertedNode_1695382906103"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="35650" 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="35650" 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="35650" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - 9/20/2023&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-35650"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;&lt;blockquote data-id="35649" class="if-quote-wrapper" unselectable="on" data-guid="1695382906573" contenteditable="false" id="if_insertedNode_1695213542856"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="35649" 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="35649" 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="35649" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;alexandra.vasilache - 9/20/2023&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-35649"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;Dear Dave,&lt;br/&gt;&lt;br/&gt;I do see your point, that is also how I expected it to work.&lt;br/&gt;But my 82 participants are not distributed as the first 41 participants in group 1 and the rest in group 2.&lt;br/&gt;Please see the attached document for the exact participant number distribution between the 2 groups.&lt;br/&gt;&lt;br/&gt;In my case, how can I achieve this even distribution of the conditions between the 2 groups?&lt;br/&gt;&lt;br/&gt;Thanks for bearing with me!&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="35649"&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;Yeah, well, then don't assign conditions by subject number.&lt;br/&gt;&lt;br/&gt;In your batch script, change /subjects to /groups, and in your Excel spreadsheet, add a new column and give each participant a condition number between 1 to 6, such that each condition number occurs approximately equally often (i.e. 6 to 7 times) in each of the two groups.&lt;br/&gt;&lt;br/&gt;You can use the session ID to hold the actual "experimental group" number (1 or 2 in your case). Or switch it around, and use /sessions for condition assignment (instead of /subjects or /groups).&lt;br/&gt;&lt;br/&gt;&lt;a href="https://www.millisecond.com/support/docs/current/html/articles/batchscripts.htm"&gt;&lt;a href="https://www.millisecond.com/support/docs/current/html/articles/batchscripts.htm"&gt;https://www.millisecond.com/support/docs/current/html/articles/batchscripts.htm&lt;/a&gt;&lt;/a&gt;&lt;br/&gt;&lt;br/&gt;With either of these attributes, how condition assignment works is the same:&lt;br/&gt;&lt;br/&gt;The number entered is taken modulo 6 (because you have 6 conditions), and the result determines which condition/script is administered.&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="35650"&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;Dear Dave,&lt;br/&gt;&lt;br/&gt;Thank you for your idea and for your help. That's what I ended up doing.</description><pubDate>Fri, 22 Sep 2023 11:42:39 GMT</pubDate><dc:creator>alexandra.vasilache</dc:creator></item><item><title>RE: Counterbalancing by group and subject number</title><link>https://forums.millisecond.com/Topic35650.aspx</link><description>&lt;blockquote data-id="35649" class="if-quote-wrapper" unselectable="on" data-guid="1695213544006" contenteditable="false" id="if_insertedNode_1695213542856"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="35649" 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="35649" 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="35649" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;alexandra.vasilache - 9/20/2023&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-35649"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;Dear Dave,&lt;br/&gt;&lt;br/&gt;I do see your point, that is also how I expected it to work.&lt;br/&gt;But my 82 participants are not distributed as the first 41 participants in group 1 and the rest in group 2.&lt;br/&gt;Please see the attached document for the exact participant number distribution between the 2 groups.&lt;br/&gt;&lt;br/&gt;In my case, how can I achieve this even distribution of the conditions between the 2 groups?&lt;br/&gt;&lt;br/&gt;Thanks for bearing with me!&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="35649"&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;Yeah, well, then don't assign conditions by subject number.&lt;br/&gt;&lt;br/&gt;In your batch script, change /subjects to /groups, and in your Excel spreadsheet, add a new column and give each participant a condition number between 1 to 6, such that each condition number occurs approximately equally often (i.e. 6 to 7 times) in each of the two groups.&lt;br/&gt;&lt;br/&gt;You can use the session ID to hold the actual "experimental group" number (1 or 2 in your case). Or switch it around, and use /sessions for condition assignment (instead of /subjects or /groups).&lt;br/&gt;&lt;br/&gt;&lt;a href="https://www.millisecond.com/support/docs/current/html/articles/batchscripts.htm"&gt;https://www.millisecond.com/support/docs/current/html/articles/batchscripts.htm&lt;/a&gt;&lt;br/&gt;&lt;br/&gt;With either of these attributes, how condition assignment works is the same:&lt;br/&gt;&lt;br/&gt;The number entered is taken modulo 6 (because you have 6 conditions), and the result determines which condition/script is administered.&lt;br/&gt;</description><pubDate>Wed, 20 Sep 2023 12:48:49 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: Counterbalancing by group and subject number</title><link>https://forums.millisecond.com/Topic35649.aspx</link><description>Dear Dave,&lt;br/&gt;&lt;br/&gt;I do see your point, that is also how I expected it to work.&lt;br/&gt;But my 82 participants are not distributed as the first 41 participants in group 1 and the rest in group 2.&lt;br/&gt;Please see the attached document for the exact participant number distribution between the 2 groups.&lt;br/&gt;&lt;br/&gt;In my case, how can I achieve this even distribution of the conditions between the 2 groups?&lt;br/&gt;&lt;br/&gt;Thanks for bearing with me!&lt;br/&gt;</description><pubDate>Wed, 20 Sep 2023 12:36:42 GMT</pubDate><dc:creator>alexandra.vasilache</dc:creator></item><item><title>RE: Counterbalancing by group and subject number</title><link>https://forums.millisecond.com/Topic35648.aspx</link><description>&lt;blockquote data-id="35647" class="if-quote-wrapper" unselectable="on" data-guid="1695209761447" contenteditable="false" id="if_insertedNode_1695209759876"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="35647" 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="35647" 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="35647" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;alexandra.vasilache - 9/20/2023&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-35647"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;&lt;blockquote data-id="35643" class="if-quote-wrapper" unselectable="on" data-guid="1695209761447" contenteditable="false" id="if_insertedNode_1695202937017"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="35643" 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="35643" 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="35643" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - 9/19/2023&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-35643"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;&lt;blockquote data-id="35638" class="if-quote-wrapper" unselectable="on" data-guid="1695209761447" contenteditable="false" id="if_insertedNode_1695145030423"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="35638" 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="35638" 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="35638" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;alexandra.vasilache - 9/19/2023&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-35638"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;Dear Millisecond community,&lt;br/&gt;&lt;br/&gt;I have programmed an experiment comprising 6 different experimental conditions. I would like to have these conditions counterbalanced within my 2 experimental groups, so that each condition is repeated an equal number of times within each group. I plan to have 82 participants in total, so 41 per each group.&lt;br/&gt;The code below assigns every 6th participant to a specific condition, the problem is that in the end, conditions are not equally distributed within the 2 groups. For example, condition 4 gets repeated 9 times in group 1 and only 5 times in group 2.&lt;br/&gt;&lt;br/&gt;Do you have any idea how I could modify the code so that each 6th participant is assigned to a specific condition within each group, and each condition is repeated an approximately equal number of times in both groups?&lt;br/&gt;&lt;br/&gt;I would really appreciate the help!&lt;br/&gt;&lt;br/&gt;&lt;img src="../Uploads/Images/2b9270f4-ea76-4326-b0d6-99a6.png" data-download-url="../Uploads/Images/2e1999f7-911d-4925-a29a-ce4b.png" id="if_insertedNode_1695133637969"&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="35638"&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;I guess it's unclear to me what, exactly, you consider to be your two groups and how, consequently, you arrived at the following statement: "[C]onditions are not equally distributed within the 2 groups. For example, condition 4 gets repeated 9 times in group 1 and only 5 times in group 2."&lt;br/&gt;&lt;br/&gt;Please elaborate in sufficient detail.&lt;a class="if-quote-goto quote-link" href="#" data-id="35643"&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;Dear Dave,&lt;br/&gt;&lt;br/&gt;Thanks for your reply! Hereby the clarification:&lt;br/&gt;&lt;br/&gt;I have two experimental groups: waitlist control and treatment. Participants have been already randomly assigned to these 2 groups (not in Inquisit lab, I have an Excel sheet with their specific group assignment). So when I run the experiment I manually input the group number of each participant from that Excel sheet. I cannot change their random group assignment, that's why I haven't programmed it in Inquisit. For this specific task that I have programmed in Inquisit I have 6 different experimental conditions, which I would like to be counterbalanced within my 2 groups.&lt;br/&gt;&lt;br/&gt;The problem with the previous code is that the conditions don't get evenly distributed within the two groups. &lt;br/&gt;&lt;br/&gt;Is there a way that I could assign every 6th participant in each group to a different condition so I get an approximately even distribution of conditions within the 2 groups?&lt;br/&gt;&lt;br/&gt;Or should I try a different approach to counterbalancing in my case? &lt;br/&gt;&lt;br/&gt;Thank you!&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="35647"&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;&amp;gt;  So when I run the experiment I manually input the group number of each participant from that Excel sheet.&lt;br/&gt;&lt;br/&gt;The batch code you posted assigns condition by subject number, not by group number. So, what are the subject numbers in the two groups, respectively?&lt;br/&gt;&lt;br/&gt;Condition assignment, as you have it, works like this: You have 6 conditions, so the subject number entered is taken modulo 6. Assuming subject numbers 1 to 82, and further assuming 1 to 41 constitute "group 1" (bold) and "42 to 82" constitute "group 2", this would result in the following:&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;1,7,13,19,25,31,37&lt;/strong&gt;,43,49,55,61,67,73,79 modulo&amp;nbsp; 6 = 1 -&amp;gt; condition 1 (14; 7/7)&lt;br/&gt;&lt;strong&gt;2,8,14,20,26,32,38&lt;/strong&gt;,44,50,56,62,68,74,80 modulo 6 = 2 -&amp;gt; condition 2 (14; 7/7)&lt;br/&gt;&lt;strong&gt;3,9,15,21,27,33,39&lt;/strong&gt;,45,51,57,63,69,75,81 modulo 6 = 3 -&amp;gt; condition 3 (14; 7/7)&lt;br/&gt;&lt;strong&gt;4,10,16,22,28,34,40&lt;/strong&gt;,46,52,58,64,70,76,82 modulo 6 = 4 -&amp;gt; condition 4 (14; 7/7)&lt;br/&gt;&lt;strong&gt;5,11,17,23,29,35,41&lt;/strong&gt;,47,53,59,65,71,77 modulo 6 = 5 -&amp;gt; condition 5 (13; 7/6)&lt;br/&gt;&lt;strong&gt;6,12,18,24,30,36&lt;/strong&gt;,42,48,54,60,66,72,78 modulo 6 = 0 -&amp;gt; condition 6 (13; 6/7)&lt;br/&gt;&lt;br/&gt;As you can see, this absolutely leads to an even distribution of conditions within the two "groups".&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;</description><pubDate>Wed, 20 Sep 2023 12:35:08 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: Counterbalancing by group and subject number</title><link>https://forums.millisecond.com/Topic35647.aspx</link><description>&lt;blockquote data-id="35643" class="if-quote-wrapper" unselectable="on" data-guid="1695202938266" contenteditable="false" id="if_insertedNode_1695202937017"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="35643" 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="35643" 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="35643" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - 9/19/2023&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-35643"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;&lt;blockquote data-id="35638" class="if-quote-wrapper" unselectable="on" data-guid="1695202938266" contenteditable="false" id="if_insertedNode_1695145030423"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="35638" 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="35638" 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="35638" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;alexandra.vasilache - 9/19/2023&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-35638"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;Dear Millisecond community,&lt;br/&gt;&lt;br/&gt;I have programmed an experiment comprising 6 different experimental conditions. I would like to have these conditions counterbalanced within my 2 experimental groups, so that each condition is repeated an equal number of times within each group. I plan to have 82 participants in total, so 41 per each group.&lt;br/&gt;The code below assigns every 6th participant to a specific condition, the problem is that in the end, conditions are not equally distributed within the 2 groups. For example, condition 4 gets repeated 9 times in group 1 and only 5 times in group 2.&lt;br/&gt;&lt;br/&gt;Do you have any idea how I could modify the code so that each 6th participant is assigned to a specific condition within each group, and each condition is repeated an approximately equal number of times in both groups?&lt;br/&gt;&lt;br/&gt;I would really appreciate the help!&lt;br/&gt;&lt;br/&gt;&lt;img src="../Uploads/Images/2b9270f4-ea76-4326-b0d6-99a6.png" data-download-url="../Uploads/Images/2e1999f7-911d-4925-a29a-ce4b.png" id="if_insertedNode_1695133637969"&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="35638"&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;I guess it's unclear to me what, exactly, you consider to be your two groups and how, consequently, you arrived at the following statement: "[C]onditions are not equally distributed within the 2 groups. For example, condition 4 gets repeated 9 times in group 1 and only 5 times in group 2."&lt;br/&gt;&lt;br/&gt;Please elaborate in sufficient detail.&lt;a class="if-quote-goto quote-link" href="#" data-id="35643"&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;Dear Dave,&lt;br/&gt;&lt;br/&gt;Thanks for your reply! Hereby the clarification:&lt;br/&gt;&lt;br/&gt;I have two experimental groups: waitlist control and treatment. Participants have been already randomly assigned to these 2 groups (not in Inquisit lab, I have an Excel sheet with their specific group assignment). So when I run the experiment I manually input the group number of each participant from that Excel sheet. I cannot change their random group assignment, that's why I haven't programmed it in Inquisit. For this specific task that I have programmed in Inquisit I have 6 different experimental conditions, which I would like to be counterbalanced within my 2 groups.&lt;br/&gt;&lt;br/&gt;The problem with the previous code is that the conditions don't get evenly distributed within the two groups. &lt;br/&gt;&lt;br/&gt;Is there a way that I could assign every 6th participant in each group to a different condition so I get an approximately even distribution of conditions within the 2 groups?&lt;br/&gt;&lt;br/&gt;Or should I try a different approach to counterbalancing in my case? &lt;br/&gt;&lt;br/&gt;Thank you!&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;</description><pubDate>Wed, 20 Sep 2023 10:24:14 GMT</pubDate><dc:creator>alexandra.vasilache</dc:creator></item><item><title>RE: Counterbalancing by group and subject number</title><link>https://forums.millisecond.com/Topic35643.aspx</link><description>&lt;blockquote data-id="35638" class="if-quote-wrapper" unselectable="on" data-guid="1695145031860" contenteditable="false" id="if_insertedNode_1695145030423"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="35638" 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="35638" 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="35638" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;alexandra.vasilache - 9/19/2023&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-35638"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;Dear Millisecond community,&lt;br/&gt;&lt;br/&gt;I have programmed an experiment comprising 6 different experimental conditions. I would like to have these conditions counterbalanced within my 2 experimental groups, so that each condition is repeated an equal number of times within each group. I plan to have 82 participants in total, so 41 per each group.&lt;br/&gt;The code below assigns every 6th participant to a specific condition, the problem is that in the end, conditions are not equally distributed within the 2 groups. For example, condition 4 gets repeated 9 times in group 1 and only 5 times in group 2.&lt;br/&gt;&lt;br/&gt;Do you have any idea how I could modify the code so that each 6th participant is assigned to a specific condition within each group, and each condition is repeated an approximately equal number of times in both groups?&lt;br/&gt;&lt;br/&gt;I would really appreciate the help!&lt;br/&gt;&lt;br/&gt;&lt;img src="../Uploads/Images/2b9270f4-ea76-4326-b0d6-99a6.png" data-download-url="../Uploads/Images/2e1999f7-911d-4925-a29a-ce4b.png" id="if_insertedNode_1695133637969"&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="35638"&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;I guess it's unclear to me what, exactly, you consider to be your two groups and how, consequently, you arrived at the following statement: "[C]onditions are not equally distributed within the 2 groups. For example, condition 4 gets repeated 9 times in group 1 and only 5 times in group 2."&lt;br/&gt;&lt;br/&gt;Please elaborate in sufficient detail.</description><pubDate>Tue, 19 Sep 2023 17:38:42 GMT</pubDate><dc:creator>Dave</dc:creator></item></channel></rss>