Randomize script presentation using batch


Author
Message
jessrh
jessrh
Partner Member (778 reputation)Partner Member (778 reputation)Partner Member (778 reputation)Partner Member (778 reputation)Partner Member (778 reputation)Partner Member (778 reputation)Partner Member (778 reputation)Partner Member (778 reputation)Partner Member (778 reputation)
Group: Forum Members
Posts: 5, Visits: 17
Hi all, 

I want to randomize subjects into three different conditions, but want the number of subjects in each condition to be equal. I found here that one way to do this is to use separate .iqx files for each condition and host them in a batch file which will randomize, like this:

<batch>
/ subjects = (1 of 3)
/ groupassignment = groupnumber
/ file = "MOODROC_positive.iqx"
</batch>

<batch>
/ subjects = (2 of 3)
/ groupassignment = groupnumber
/ file = "MOODROC_negative.iqx"
</batch>

<batch>
/ subjects = (3 of 3)
/ groupassignment = groupnumber
/ file = "MOODROC_neutral.iqx"
</batch>

However, I've run the batch script several times and it has not randomized the conditions (it only presents the 3rd condition, "neutral"). Any input into how to resolve this issue would be much appreciated!
Dave
Dave
Supreme Being (775K reputation)Supreme Being (775K reputation)Supreme Being (775K reputation)Supreme Being (775K reputation)Supreme Being (775K reputation)Supreme Being (775K reputation)Supreme Being (775K reputation)Supreme Being (775K reputation)Supreme Being (775K reputation)
Group: Administrators
Posts: 9.9K, Visits: 49K
I assume you are running this via Inquisit Web and that you've set your launch page up to generate random group numbers.. If so, you need to refresh the launch page between your test runs. The group number is generated when your browser first loads the page. If you don't refresh it, no new group number will be generated and you will get the same condition repeatedly.

jessrh
jessrh
Partner Member (778 reputation)Partner Member (778 reputation)Partner Member (778 reputation)Partner Member (778 reputation)Partner Member (778 reputation)Partner Member (778 reputation)Partner Member (778 reputation)Partner Member (778 reputation)Partner Member (778 reputation)
Group: Forum Members
Posts: 5, Visits: 17
Hi Dave, 

Thank you for your quick reply. This fixed my randomization issue, but after several runs, the experiment began ending prematurely, presenting the "The session is complete, and your data were successfully uploaded. Thank you for your participation!" screen before the task even started. It seems like now the website might not be calling the scripts in my batch file, though it was working before online and continues to work on the desktop version of Inquisit. Any thoughts on this? 

Thank you so much!

Jess
Dave
Dave
Supreme Being (775K reputation)Supreme Being (775K reputation)Supreme Being (775K reputation)Supreme Being (775K reputation)Supreme Being (775K reputation)Supreme Being (775K reputation)Supreme Being (775K reputation)Supreme Being (775K reputation)Supreme Being (775K reputation)
Group: Administrators
Posts: 9.9K, Visits: 49K
This indicates an issue in your script(s). Specifically, you are passing in a group number or subject number for which no condition is assigned (and hence nothing will be run). You *will* see this happening in Inquisit Lab also, you just need to test out all the conditions (i.e., enter different group and/or subject numbers).

jessrh
jessrh
Partner Member (778 reputation)Partner Member (778 reputation)Partner Member (778 reputation)Partner Member (778 reputation)Partner Member (778 reputation)Partner Member (778 reputation)Partner Member (778 reputation)Partner Member (778 reputation)Partner Member (778 reputation)
Group: Forum Members
Posts: 5, Visits: 17
Is there a way to assign the group numbers 1, 2 and 3 on Inquisit Web and have it repeat this assignment (1, 2 and 3) for several hundred participants? 
Dave
Dave
Supreme Being (775K reputation)Supreme Being (775K reputation)Supreme Being (775K reputation)Supreme Being (775K reputation)Supreme Being (775K reputation)Supreme Being (775K reputation)Supreme Being (775K reputation)Supreme Being (775K reputation)Supreme Being (775K reputation)
Group: Administrators
Posts: 9.9K, Visits: 49K
You can opt for generating group ids sequentially. There is no need to only repeat the exact numbers 1,2 and 3, because assignment is based on the modulus of the provided group number. I.e.

1 mod 3 = 1 -> condition 1
2 mod 3 = 2 -> condition 2
3 mod 3 = 0 -> condition 3
4 mod 3 = 1 -> condition 1
5 mod 3 = 2 -> condition 2
6 mod 3 = 0 -> condition 3
and so forth.

For details see this post: https://www.millisecond.com/forums/Topic13856.aspx

jessrh
jessrh
Partner Member (778 reputation)Partner Member (778 reputation)Partner Member (778 reputation)Partner Member (778 reputation)Partner Member (778 reputation)Partner Member (778 reputation)Partner Member (778 reputation)Partner Member (778 reputation)Partner Member (778 reputation)
Group: Forum Members
Posts: 5, Visits: 17
Thank you for all of your help! I have one last issue that arose after implementing the sequential query. The experiment only runs on Google Chrome when a new Chrome session is established - i.e. I have to close Chrome and open a new session to begin the experiment, or else it goes straight to the "thank you" page as before. In both Safari and Firefox, the link worked when a I began a new web session, did not work when I refreshed the search bar in the same tab, but did worked when the link was copy-pasted into a new tab on the same session. Is there anything I can do to fix this issue? 
Dave
Dave
Supreme Being (775K reputation)Supreme Being (775K reputation)Supreme Being (775K reputation)Supreme Being (775K reputation)Supreme Being (775K reputation)Supreme Being (775K reputation)Supreme Being (775K reputation)Supreme Being (775K reputation)Supreme Being (775K reputation)
Group: Administrators
Posts: 9.9K, Visits: 49K
This very much sounds like an issue with Chrome for some reason not refreshing the page even if instructed to do so ("[...] I refreshed the search bar in the same tab [...]"). I don't know why that is and I'm not seeing this in my Chrome installation; refreshing seems to work as expected. So I have no idea here, I'm afraid. Are you seeing this on one particular machine only or across multiple computers?

Dave
Dave
Supreme Being (775K reputation)Supreme Being (775K reputation)Supreme Being (775K reputation)Supreme Being (775K reputation)Supreme Being (775K reputation)Supreme Being (775K reputation)Supreme Being (775K reputation)Supreme Being (775K reputation)Supreme Being (775K reputation)
Group: Administrators
Posts: 9.9K, Visits: 49K
Adding a couple of thoughts to the above:

#1: There is a risk I'm misunderstanding what exactly you mean by "[...] I refreshed the search bar in the same tab [...]". Could you elaborate? I.e., does it mean you move the cursor into the search / address bar and press enter, or that you clicked the refresh button in the bar, or something else?

#2: Chrome sometimes has weird caching behavior; if a "soft refresh" via the refresh button or by pressing F5 doesn't work, you can force a "hard refresh" via CTRL+F5.

Let me know what you find.

Nina
Nina
Expert (1.3K reputation)Expert (1.3K reputation)Expert (1.3K reputation)Expert (1.3K reputation)Expert (1.3K reputation)Expert (1.3K reputation)Expert (1.3K reputation)Expert (1.3K reputation)Expert (1.3K reputation)
Group: Forum Members
Posts: 14, Visits: 73

Probably a stupid question, but why do I need /subjects and /groupassignment to randomize? So what is the difference between this two? 
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Reading This Topic

Explore
Messages
Mentions
Search