Randomizing (some) scripts using the batch element?


Author
Message
satchmo496
satchmo496
Partner Member (808 reputation)Partner Member (808 reputation)Partner Member (808 reputation)Partner Member (808 reputation)Partner Member (808 reputation)Partner Member (808 reputation)Partner Member (808 reputation)Partner Member (808 reputation)Partner Member (808 reputation)
Group: Forum Members
Posts: 21, Visits: 37
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!
Dave
Dave
Supreme Being (950K reputation)Supreme Being (950K reputation)Supreme Being (950K reputation)Supreme Being (950K reputation)Supreme Being (950K reputation)Supreme Being (950K reputation)Supreme Being (950K reputation)Supreme Being (950K reputation)Supreme Being (950K reputation)
Group: Administrators
Posts: 11K, Visits: 71K
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>

Edited 2 Months Ago by Dave
satchmo496
satchmo496
Partner Member (808 reputation)Partner Member (808 reputation)Partner Member (808 reputation)Partner Member (808 reputation)Partner Member (808 reputation)Partner Member (808 reputation)Partner Member (808 reputation)Partner Member (808 reputation)Partner Member (808 reputation)
Group: Forum Members
Posts: 21, Visits: 37
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!
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Reading This Topic

Explore
Messages
Mentions
Search