Millisecond Forums

Randomizing (some) scripts using the batch element?

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

By satchmo496 - 6/21/2021

I'd like to create a study in which subjects complete 5 different versions of the GNAT, each measuring attitudes toward a different set of groups. Subjects will complete the 5 GNATs in random order. The GNATs are identical in construction except that the first GNAT subjects complete will always have more practice trials than the 4 subsequent GNATs (to reduce fatigue). What I'd like to do is create a batch element in which subjects will be assigned to the first GNAT based on their group number and from there they will receive the other 4 GNATs in a random order. Can this be accomplished using the batch element? Or is there some alternative way to make something like this work? Thanks in advance for any help you can offer!
By Dave - 6/21/2021

satchmo496 - 6/21/2021
I'd like to create a study in which subjects complete 5 different versions of the GNAT, each measuring attitudes toward a different set of groups. Subjects will complete the 5 GNATs in random order. The GNATs are identical in construction except that the first GNAT subjects complete will always have more practice trials than the 4 subsequent GNATs (to reduce fatigue). What I'd like to do is create a batch element in which subjects will be assigned to the first GNAT based on their group number and from there they will receive the other 4 GNATs in a random order. Can this be accomplished using the batch element? Or is there some alternative way to make something like this work? Thanks in advance for any help you can offer!

Yeah, you can do this using <batch> like so:

// A first
<batch a1>
/ subjects = (1 of 5)
/ groupassignment = groupnumber
/ file = "gnat_a_first.iqx"
</batch>

// B, C, D, E random
<batch a2>
/ subjects = (1 of 5)
/ groupassignment = groupnumber
/ selectionmode = random
/ file = "gnat_b.iqx"
/ file = "gnat_c.iqx"
/ file = "gnat_d.iqx"
/ file = "gnat_e.iqx"
</batch>

// B first
<batch b1>
/ subjects = (2 of 5)
/ groupassignment = groupnumber
/ file = "gnat_b_first.iqx"
</batch>

// A, C, D, E random
<batch b2>
/ subjects = (2 of 5)
/ groupassignment = groupnumber
/ selectionmode = random
/ file = "gnat_a.iqx"
/ file = "gnat_c.iqx"
/ file = "gnat_d.iqx"
/ file = "gnat_e.iqx"
</batch>

...

// E first
<batch e1>
/ subjects = (5 of 5)
/ groupassignment = groupnumber
/ file = "gnat_e_first.iqx"
</batch>

// A, B, C, D random
<batch e2>
/ subjects = (5 of 5)
/ groupassignment = groupnumber
/ selectionmode = random
/ file = "gnat_a.iqx"
/ file = "gnat_b.iqx"
/ file = "gnat_c.iqx"
/ file = "gnat_d.iqx"
</batch>
By satchmo496 - 6/22/2021

Dave - 6/21/2021
satchmo496 - 6/21/2021
I'd like to create a study in which subjects complete 5 different versions of the GNAT, each measuring attitudes toward a different set of groups. Subjects will complete the 5 GNATs in random order. The GNATs are identical in construction except that the first GNAT subjects complete will always have more practice trials than the 4 subsequent GNATs (to reduce fatigue). What I'd like to do is create a batch element in which subjects will be assigned to the first GNAT based on their group number and from there they will receive the other 4 GNATs in a random order. Can this be accomplished using the batch element? Or is there some alternative way to make something like this work? Thanks in advance for any help you can offer!

Yeah, you can do this using <batch> like so:

// A first
<batch a1>
/ subjects = (1 of 5)
/ groupassignment = groupnumber
/ file = "gnat_a_first.iqx"
</batch>

// B, C, D, E random
<batch a2>
/ subjects = (1 of 5)
/ groupassignment = groupnumber
/ selectionmode = random
/ file = "gnat_b.iqx"
/ file = "gnat_c.iqx"
/ file = "gnat_d.iqx"
/ file = "gnat_e.iqx"
</batch>

// B first
<batch b1>
/ subjects = (2 of 5)
/ groupassignment = groupnumber
/ file = "gnat_b_first.iqx"
</batch>

// A, C, D, E random
<batch b2>
/ subjects = (2 of 5)
/ groupassignment = groupnumber
/ selectionmode = random
/ file = "gnat_a.iqx"
/ file = "gnat_c.iqx"
/ file = "gnat_d.iqx"
/ file = "gnat_e.iqx"
</batch>

...

// E first
<batch e1>
/ subjects = (5 of 5)
/ groupassignment = groupnumber
/ file = "gnat_e_first.iqx"
</batch>

// A, B, C, D random
<batch e2>
/ subjects = (5 of 5)
/ groupassignment = groupnumber
/ selectionmode = random
/ file = "gnat_a.iqx"
/ file = "gnat_b.iqx"
/ file = "gnat_c.iqx"
/ file = "gnat_d.iqx"
</batch>

Wonderful, thank you for the help!