Millisecond Forums

How to randomize script order in batch?

https://forums.millisecond.com/Topic22519.aspx

By yhwong - 9/18/2017

Hi,

I have 5 scripts which I have combined with the <batch> element. I would like to keep script1 always in the 1st position, but randomize the order of script2-5 when I administer the test to participants. I realise that I can create multiple batches with the different orders, and then use groupassignment = random to achieve this, but that would mean I have 4! = 24 combinations to write out! Is there a less cumbersome way to do this?

My batch script: 

<batch>
/ file = "script1.iqx"
/ file = "script2.iqx"
/ file = "script3.iqx"
/ file = "script4.iqx"
/ file = "script5.iqx"
</batch>

Thank you for your help.

By Dave - 9/18/2017

yhwong - Monday, September 18, 2017
Hi,

I have 5 scripts which I have combined with the <batch> element. I would like to keep script1 always in the 1st position, but randomize the order of script2-5 when I administer the test to participants. I realise that I can create multiple batches with the different orders, and then use groupassignment = random to achieve this, but that would mean I have 4! = 24 combinations to write out! Is there a less cumbersome way to do this?

My batch script: 

<batch>
/ file = "script1.iqx"
/ file = "script2.iqx"
/ file = "script3.iqx"
/ file = "script4.iqx"
/ file = "script5.iqx"
</batch>

Thank you for your help.


> Is there a less cumbersome way to do this?

No, I'm afraid there isn't. Defining multiple <batch> elements and then assigning randomly to one would be the way to go.