Millisecond Forums

can <batch> randomize scripts?

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

By jordan - 9/16/2012

Hello all!


I'm trying to put together an online experiment that will consist of two parts: the OSPAN working memory test and a demographic survey. It looks like using the <batch> code will make it easy to use the two scripts together and keep them associate with the same subject number - but I'm hoping to also randomly have participants perform one script first and then the other.


I was looking through the documentation and saw that it wasn't supported in Inquisit 3 but was planned for future release - does anyone know if this is possible now, or if not if there's another way to go about this?


Thank you in advance for any advice or guidance!


Jordan

By Dave - 9/16/2012

It looks like using the <batch> code will make it easy to use the two scripts together and keep them associate with the same subject number - but I'm hoping to also randomly have participants perform one script first and then the other.


This is possible / supported in Inquisit 3. You do


<batch>
/ file = "a.exp"
/ file = "b.exp"
/ subjects = (1 of 2)
/ groupassignment = random
</batch>

<batch>
/ file = "b.exp"
/ file = "a.exp"
/ subjects = (2 of 2)
/ groupassignment = random
</batch>


Regards,


~Dave

By jordan - 9/16/2012

that worked perfectly, thank you!

By jordan - 10/21/2012

Everything has been working great, but was going through the data files and was wondering if the batch subject number was recorded anywhere. Is that not connected, or would I need to add something to both of the scripts to pass that value through to the data that is recorded?


By Dave - 10/21/2012

The subject # in your various data files is the same that was used by the batch. That's the one of the major points of running scripts via batch -- use the same id for all of them.

By jordan - 10/21/2012

Sorry, not the user id, that's being tracked consistently - what I'm trying to figure out is how to tell whether they were in batch 1, or batch 2. There's a group # field, but that is showing up as 1 for everybody.

By Dave - 10/21/2012

Since you've set groupassignment to random, you'll have to use the date and time information in the data files to figure out the order of scripts and thus which <batch> order was administered.

By jordan - 10/21/2012

ah... got it, that makes sense. so it might be better to do something other than random to make it easier to keep track of. thank you!