Millisecond Forums

Web experiment and multiple versions

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

By GeeP - 9/3/2015

Hi All,

I have an experiment that I am thinking of posting to the web for data collection but I am stuck with one issue. The study has 4 .iqx experiment files with each having a different condition. In the lab, I'd ask the RAs to assign subjects serially to each of the four files (P1=first file, P2=second file...etc.). However, on the web this cannot be the case. Is there a easy way to combine all the 4 .iqx files in such a way that it is assured that subjects will be randomly assigned to one of 4 versions. Please help.

Thanks,
-Geep
By Dave - 9/3/2015

Yes, by using <batch> elements.

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

<batch>
/ subjects = (2 of 4)
/ groupassignment = groupnumber
/ file = "B.iqx"
</batch>
...
<batch>
/ subjects = (4 of 4)
/ groupassignment = groupnumber
/ file = "D.iqx"
</batch>

Register the file containing the 4 <batch> elements as your active script. Set the group number generation to sequential.

By GeeP - 9/3/2015

Thanks Dave!

Is there an example I can look at to set this up? I have never used the batch element. I'm confused as to where to add the batch element. There are 4 .iqx files in the experiment folder, so should I add the script you shared to all of them? Also, I am not sure what you mean by "Register the file containing the 4 <batch> elements as your active script. Set the group number generation to sequential." Is this exclusive to only a web experiment? Apologies for all these questions! Thanks for everything

-Geep
By Dave - 9/3/2015

The 4 <batch> elements go in a new, separate file. Call it batch.iqx and place it alongside the existing scripts. Execute batch.iqx. Entering 1 as group number will run A.iqx. Entering 2 will run B.iqx, etc.

On the web, you register batch.iqx as your web script. You then upload the remaining files (the 4 "actual" scripts, images, etc.) in the next step.

That's all there is to it.
By GeeP - 9/3/2015

Ah! Great! Thanks a ton! So, along with the group number (1=A, 2=B, 3=C and 4=D) I should simply enter the subject ID, correct? Should I add anything in the data element or Inquisit will automatically register the group number and which version was run on which subject? Thank you very much again Dave!
By Dave - 9/3/2015

You enter the subject number as you usually would.

Whether you need to make any adjustments to the <data> elements, I do not know. If it's not already defined, log the groupid

<data>
/ columns = [date time subject group ...]
...
</data>

The group number tells you which script was run (cf. https://www.millisecond.com/forums/Topic13856.aspx ).
By GeeP - 9/3/2015

Great! Thank you very much for all your help Dave!