By Diane - 3/23/2015
Hi,
I am testing a web experiment. I am using group assignment in the url (e.g., ?mygroup=1, ?mygroup=2, etc.). In the experiment I have 24 different groups, based on the group number the participants gets one of 4 experiments, and 1 of 24 variable assignments. The assignment to experiments works perfect, but the variable assignment seems to be random and does not correspond to the group number.
I've pasted the relevant parts of the script below. Can anyone tell me how I can get the variables element to work correctly?
Thanks, Diane
<expt AP1> /blocks = [1=MTurkID; 2=APpracticeblock;3=APblock1;4=APblock2;5=exitvragen1] /subjects = (1,2,3,4 of 24) /groupassignment = groupnumber /preinstructions = (intro) /postinstructions = (end1) </expt>
<expt RP1> /blocks = [1=MTurkID; 2=RPpracticeblock;3=RPblock1;4=RPblock2;5=RPblock3;6=exitvragen1] /subjects = (5,6,7,8 of 24) /groupassignment = groupnumber /preinstructions = (intro) /postinstructions = (end1) </expt>
<expt AP2> /blocks = [1=MTurkID; 2=APpracticeblock;3=APblock1;4=APblock2;5=exitvragen2] /subjects = (9,10,11,12,17,18,19,20 of 24) /groupassignment = groupnumber /preinstructions = (introtest) /postinstructions = (end2) </expt>
<expt RP2> /blocks = [1=MTurkID; 2=RPpracticeblock;3=RPblock1;4=RPblock2;5=RPblock3;6=exitvragen2] /subjects = (13,14,15,16,21,22,23,24 of 24) /groupassignment = groupnumber /preinstructions = (intro) /postinstructions = (end2) </expt>
<variables> / group = (1 of 24) (practicewordprimes = practicewordprimes1, practicewordtargets = practicewordtargets1, practicenonwordprimes = practicenonwordprimes1, practicenonwordtargets = practicenonwordtargets1, relatedprimes = relatedprimes1, relatedtargets = targets1, unrelatedprimes = unrelatedprimes2, unrelatedtargets = targets2, fillerwordprimes = fillerwordprimes1, fillerwordtargets = fillerwordtargets1, fillernonwordprimes = fillernonwordprimes1, fillernonwordtargets = fillernonwordtargets1, practicewords = practicewords1, practicenonwords = practicenonwords1, nonrepeatednonwords = nonwords2, repeatednonwords = nonwords1, primesnonwords = nonwords1prime, nonrepeatedLFwords = LF2, repeatedLFwords = LF1, primesLFwords = LF1prime, nonrepeatedHFwords = HF2, repeatedHFwords = HF1, primesHFwords = HF1prime) / group = (2 of 24) (practicewordprimes = practicewordprimes1, practicewordtargets = practicewordtargets1, practicenonwordprimes = practicenonwordprimes1, practicenonwordtargets = practicenonwordtargets1, relatedprimes = relatedprimes2, relatedtargets = targets2, unrelatedprimes = unrelatedprimes1, unrelatedtargets = targets1, fillerwordprimes = fillerwordprimes1, fillerwordtargets = fillerwordtargets1, fillernonwordprimes = fillernonwordprimes1, fillernonwordtargets = fillernonwordtargets1, practicewords = practicewords1, practicenonwords = practicenonwords1, nonrepeatednonwords = nonwords2, repeatednonwords = nonwords1, primesnonwords = nonwords1prime, nonrepeatedLFwords = LF2, repeatedLFwords = LF1, primesLFwords = LF1prime, nonrepeatedHFwords = HF2, repeatedHFwords = HF1, primesHFwords = HF1prime) / group = (3 of 24) (practicewordprimes = practicewordprimes2, practicewordtargets = practicewordtargets2, practicenonwordprimes = practicenonwordprimes2, practicenonwordtargets = practicenonwordtargets2, relatedprimes = relatedprimes3, relatedtargets = targets3, unrelatedprimes = unrelatedprimes4, unrelatedtargets = targets4, fillerwordprimes = fillerwordprimes2, fillerwordtargets = fillerwordtargets2, fillernonwordprimes = fillernonwordprimes2, fillernonwordtargets = fillernonwordtargets2, practicewords = practicewords1, practicenonwords = practicenonwords1, nonrepeatednonwords = nonwords2, repeatednonwords = nonwords1, primesnonwords = nonwords1prime, nonrepeatedLFwords = LF2, repeatedLFwords = LF1, primesLFwords = LF1prime, nonrepeatedHFwords = HF2, repeatedHFwords = HF1, primesHFwords = HF1prime) / group = (4 of 24) (practicewordprimes = practicewordprimes2, practicewordtargets = practicewordtargets2, practicenonwordprimes = practicenonwordprimes2, practicenonwordtargets = practicenonwordtargets2, relatedprimes = relatedprimes4, relatedtargets = targets4, unrelatedprimes = unrelatedprimes3, unrelatedtargets = targets3, fillerwordprimes = fillerwordprimes2, fillerwordtargets = fillerwordtargets2, fillernonwordprimes = fillernonwordprimes2, fillernonwordtargets = fillernonwordtargets2, practicewords = practicewords1, practicenonwords = practicenonwords1, nonrepeatednonwords = nonwords2, repeatednonwords = nonwords1, primesnonwords = nonwords1prime, nonrepeatedLFwords = LF2, repeatedLFwords = LF1, primesLFwords = LF1prime, nonrepeatedHFwords = HF2, repeatedHFwords = HF1, primesHFwords = HF1prime) / group = (5 of 24) (practicewords = practicewords1, practicenonwords = practicenonwords1, nonrepeatednonwords = nonwords1, repeatednonwords = nonwords2, primesnonwords = nonwords2prime, nonrepeatedLFwords = LF1, repeatedLFwords = LF2, primesLFwords = LF2prime, nonrepeatedHFwords = HF1, repeatedHFwords = HF2, primesHFwords = HF2prime, practicewordprimes = practicewordprimes1, practicewordtargets = practicewordtargets1, practicenonwordprimes = practicenonwordprimes1, practicenonwordtargets = practicenonwordtargets1, relatedprimes = relatedprimes1, relatedtargets = targets1, unrelatedprimes = unrelatedprimes2, unrelatedtargets = targets2, fillerwordprimes = fillerwordprimes1, fillerwordtargets = fillerwordtargets1, fillernonwordprimes = fillernonwordprimes1, fillernonwordtargets = fillernonwordtargets1) / group = (6 of 24) (practicewords = practicewords1, practicenonwords = practicenonwords1, nonrepeatednonwords = nonwords2, repeatednonwords = nonwords1, primesnonwords = nonwords1prime, nonrepeatedLFwords = LF2, repeatedLFwords = LF1, primesLFwords = LF1prime, nonrepeatedHFwords = HF2, repeatedHFwords = HF1, primesHFwords = HF1prime, practicewordprimes = practicewordprimes1, practicewordtargets = practicewordtargets1, practicenonwordprimes = practicenonwordprimes1, practicenonwordtargets = practicenonwordtargets1, relatedprimes = relatedprimes1, relatedtargets = targets1, unrelatedprimes = unrelatedprimes2, unrelatedtargets = targets2, fillerwordprimes = fillerwordprimes1, fillerwordtargets = fillerwordtargets1, fillernonwordprimes = fillernonwordprimes1, fillernonwordtargets = fillernonwordtargets1) / group = (7 of 24) (practicewords = practicewords2, practicenonwords = practicenonwords2, nonrepeatednonwords = nonwords3, repeatednonwords = nonwords4, primesnonwords = nonwords4prime, nonrepeatedLFwords = LF3, repeatedLFwords = LF4, primesLFwords = LF4prime, nonrepeatedHFwords = HF3, repeatedHFwords = HF4, primesHFwords = HF4prime, practicewordprimes = practicewordprimes1, practicewordtargets = practicewordtargets1, practicenonwordprimes = practicenonwordprimes1, practicenonwordtargets = practicenonwordtargets1, relatedprimes = relatedprimes1, relatedtargets = targets1, unrelatedprimes = unrelatedprimes2, unrelatedtargets = targets2, fillerwordprimes = fillerwordprimes1, fillerwordtargets = fillerwordtargets1, fillernonwordprimes = fillernonwordprimes1, fillernonwordtargets = fillernonwordtargets1) / group = (8 of 24) (practicewords = practicewords2, practicenonwords = practicenonwords2, nonrepeatednonwords = nonwords4, repeatednonwords = nonwords3, primesnonwords = nonwords3prime, nonrepeatedLFwords = LF4, repeatedLFwords = LF3, primesLFwords = LF3prime, nonrepeatedHFwords = HF4, repeatedHFwords = HF3, primesHFwords = HF3prime, practicewordprimes = practicewordprimes1, practicewordtargets = practicewordtargets1, practicenonwordprimes = practicenonwordprimes1, practicenonwordtargets = practicenonwordtargets1, relatedprimes = relatedprimes1, relatedtargets = targets1, unrelatedprimes = unrelatedprimes2, unrelatedtargets = targets2, fillerwordprimes = fillerwordprimes1, fillerwordtargets = fillerwordtargets1, fillernonwordprimes = fillernonwordprimes1, fillernonwordtargets = fillernonwordtargets1) / group = (9 of 24) (practicewordprimes = practicewordprimes1, practicewordtargets = practicewordtargets1, practicenonwordprimes = practicenonwordprimes1, practicenonwordtargets = practicenonwordtargets1, relatedprimes = relatedprimes1, relatedtargets = targets1, unrelatedprimes = unrelatedprimes2, unrelatedtargets = targets2, fillerwordprimes = fillerwordprimes1, fillerwordtargets = fillerwordtargets1, fillernonwordprimes = fillernonwordprimes1, fillernonwordtargets = fillernonwordtargets1, practicewords = practicewords1, practicenonwords = practicenonwords1, nonrepeatednonwords = nonwords2, repeatednonwords = nonwords1, primesnonwords = nonwords1prime, nonrepeatedLFwords = LF2, repeatedLFwords = LF1, primesLFwords = LF1prime, nonrepeatedHFwords = HF2, repeatedHFwords = HF1, primesHFwords = HF1prime) / group = (10 of 24) (practicewordprimes = practicewordprimes1, practicewordtargets = practicewordtargets1, practicenonwordprimes = practicenonwordprimes1, practicenonwordtargets = practicenonwordtargets1, relatedprimes = relatedprimes2, relatedtargets = targets2, unrelatedprimes = unrelatedprimes1, unrelatedtargets = targets1, fillerwordprimes = fillerwordprimes1, fillerwordtargets = fillerwordtargets1, fillernonwordprimes = fillernonwordprimes1, fillernonwordtargets = fillernonwordtargets1, practicewords = practicewords1, practicenonwords = practicenonwords1, nonrepeatednonwords = nonwords2, repeatednonwords = nonwords1, primesnonwords = nonwords1prime, nonrepeatedLFwords = LF2, repeatedLFwords = LF1, primesLFwords = LF1prime, nonrepeatedHFwords = HF2, repeatedHFwords = HF1, primesHFwords = HF1prime) / group = (11 of 24) (practicewordprimes = practicewordprimes2, practicewordtargets = practicewordtargets2, practicenonwordprimes = practicenonwordprimes2, practicenonwordtargets = practicenonwordtargets2, relatedprimes = relatedprimes3, relatedtargets = targets3, unrelatedprimes = unrelatedprimes4, unrelatedtargets = targets4, fillerwordprimes = fillerwordprimes2, fillerwordtargets = fillerwordtargets2, fillernonwordprimes = fillernonwordprimes2, fillernonwordtargets = fillernonwordtargets2, practicewords = practicewords1, practicenonwords = practicenonwords1, nonrepeatednonwords = nonwords2, repeatednonwords = nonwords1, primesnonwords = nonwords1prime, nonrepeatedLFwords = LF2, repeatedLFwords = LF1, primesLFwords = LF1prime, nonrepeatedHFwords = HF2, repeatedHFwords = HF1, primesHFwords = HF1prime) / group = (12 of 24) (practicewordprimes = practicewordprimes2, practicewordtargets = practicewordtargets2, practicenonwordprimes = practicenonwordprimes2, practicenonwordtargets = practicenonwordtargets2, relatedprimes = relatedprimes4, relatedtargets = targets4, unrelatedprimes = unrelatedprimes3, unrelatedtargets = targets3, fillerwordprimes = fillerwordprimes2, fillerwordtargets = fillerwordtargets2, fillernonwordprimes = fillernonwordprimes2, fillernonwordtargets = fillernonwordtargets2, practicewords = practicewords1, practicenonwords = practicenonwords1, nonrepeatednonwords = nonwords2, repeatednonwords = nonwords1, primesnonwords = nonwords1prime, nonrepeatedLFwords = LF2, repeatedLFwords = LF1, primesLFwords = LF1prime, nonrepeatedHFwords = HF2, repeatedHFwords = HF1, primesHFwords = HF1prime) / group = (13 of 24) (practicewords = practicewords1, practicenonwords = practicenonwords1, nonrepeatednonwords = nonwords1, repeatednonwords = nonwords2, primesnonwords = nonwords2prime, nonrepeatedLFwords = LF1, repeatedLFwords = LF2, primesLFwords = LF2prime, nonrepeatedHFwords = HF1, repeatedHFwords = HF2, primesHFwords = HF2prime, practicewordprimes = practicewordprimes1, practicewordtargets = practicewordtargets1, practicenonwordprimes = practicenonwordprimes1, practicenonwordtargets = practicenonwordtargets1, relatedprimes = relatedprimes1, relatedtargets = targets1, unrelatedprimes = unrelatedprimes2, unrelatedtargets = targets2, fillerwordprimes = fillerwordprimes1, fillerwordtargets = fillerwordtargets1, fillernonwordprimes = fillernonwordprimes1, fillernonwordtargets = fillernonwordtargets1) / group = (14 of 24) (practicewords = practicewords1, practicenonwords = practicenonwords1, nonrepeatednonwords = nonwords2, repeatednonwords = nonwords1, primesnonwords = nonwords1prime, nonrepeatedLFwords = LF2, repeatedLFwords = LF1, primesLFwords = LF1prime, nonrepeatedHFwords = HF2, repeatedHFwords = HF1, primesHFwords = HF1prime, practicewordprimes = practicewordprimes1, practicewordtargets = practicewordtargets1, practicenonwordprimes = practicenonwordprimes1, practicenonwordtargets = practicenonwordtargets1, relatedprimes = relatedprimes1, relatedtargets = targets1, unrelatedprimes = unrelatedprimes2, unrelatedtargets = targets2, fillerwordprimes = fillerwordprimes1, fillerwordtargets = fillerwordtargets1, fillernonwordprimes = fillernonwordprimes1, fillernonwordtargets = fillernonwordtargets1) / group = (15 of 24) (practicewords = practicewords2, practicenonwords = practicenonwords2, nonrepeatednonwords = nonwords3, repeatednonwords = nonwords4, primesnonwords = nonwords4prime, nonrepeatedLFwords = LF3, repeatedLFwords = LF4, primesLFwords = LF4prime, nonrepeatedHFwords = HF3, repeatedHFwords = HF4, primesHFwords = HF4prime, practicewordprimes = practicewordprimes1, practicewordtargets = practicewordtargets1, practicenonwordprimes = practicenonwordprimes1, practicenonwordtargets = practicenonwordtargets1, relatedprimes = relatedprimes1, relatedtargets = targets1, unrelatedprimes = unrelatedprimes2, unrelatedtargets = targets2, fillerwordprimes = fillerwordprimes1, fillerwordtargets = fillerwordtargets1, fillernonwordprimes = fillernonwordprimes1, fillernonwordtargets = fillernonwordtargets1) / group = (16 of 24) (practicewords = practicewords2, practicenonwords = practicenonwords2, nonrepeatednonwords = nonwords4, repeatednonwords = nonwords3, primesnonwords = nonwords3prime, nonrepeatedLFwords = LF4, repeatedLFwords = LF3, primesLFwords = LF3prime, nonrepeatedHFwords = HF4, repeatedHFwords = HF3, primesHFwords = HF3prime, practicewordprimes = practicewordprimes1, practicewordtargets = practicewordtargets1, practicenonwordprimes = practicenonwordprimes1, practicenonwordtargets = practicenonwordtargets1, relatedprimes = relatedprimes1, relatedtargets = targets1, unrelatedprimes = unrelatedprimes2, unrelatedtargets = targets2, fillerwordprimes = fillerwordprimes1, fillerwordtargets = fillerwordtargets1, fillernonwordprimes = fillernonwordprimes1, fillernonwordtargets = fillernonwordtargets1) / group = (17 of 24) (practicewordprimes = practicewordprimes2, practicewordtargets = practicewordtargets2, practicenonwordprimes = practicenonwordprimes2, practicenonwordtargets = practicenonwordtargets2, relatedprimes = relatedprimes3, relatedtargets = targets3, unrelatedprimes = unrelatedprimes4, unrelatedtargets = targets4, fillerwordprimes = fillerwordprimes2, fillerwordtargets = fillerwordtargets2, fillernonwordprimes = fillernonwordprimes2, fillernonwordtargets = fillernonwordtargets2, practicewords = practicewords1, practicenonwords = practicenonwords1, nonrepeatednonwords = nonwords2, repeatednonwords = nonwords1, primesnonwords = nonwords1prime, nonrepeatedLFwords = LF2, repeatedLFwords = LF1, primesLFwords = LF1prime, nonrepeatedHFwords = HF2, repeatedHFwords = HF1, primesHFwords = HF1prime) / group = (18 of 24) (practicewordprimes = practicewordprimes2, practicewordtargets = practicewordtargets2, practicenonwordprimes = practicenonwordprimes2, practicenonwordtargets = practicenonwordtargets2, relatedprimes = relatedprimes4, relatedtargets = targets4, unrelatedprimes = unrelatedprimes3, unrelatedtargets = targets3, fillerwordprimes = fillerwordprimes2, fillerwordtargets = fillerwordtargets2, fillernonwordprimes = fillernonwordprimes2, fillernonwordtargets = fillernonwordtargets2, practicewords = practicewords1, practicenonwords = practicenonwords1, nonrepeatednonwords = nonwords2, repeatednonwords = nonwords1, primesnonwords = nonwords1prime, nonrepeatedLFwords = LF2, repeatedLFwords = LF1, primesLFwords = LF1prime, nonrepeatedHFwords = HF2, repeatedHFwords = HF1, primesHFwords = HF1prime) / group = (19 of 24) (practicewordprimes = practicewordprimes1, practicewordtargets = practicewordtargets1, practicenonwordprimes = practicenonwordprimes1, practicenonwordtargets = practicenonwordtargets1, relatedprimes = relatedprimes1, relatedtargets = targets1, unrelatedprimes = unrelatedprimes2, unrelatedtargets = targets2, fillerwordprimes = fillerwordprimes1, fillerwordtargets = fillerwordtargets1, fillernonwordprimes = fillernonwordprimes1, fillernonwordtargets = fillernonwordtargets1, practicewords = practicewords1, practicenonwords = practicenonwords1, nonrepeatednonwords = nonwords2, repeatednonwords = nonwords1, primesnonwords = nonwords1prime, nonrepeatedLFwords = LF2, repeatedLFwords = LF1, primesLFwords = LF1prime, nonrepeatedHFwords = HF2, repeatedHFwords = HF1, primesHFwords = HF1prime) / group = (20 of 24) (practicewordprimes = practicewordprimes1, practicewordtargets = practicewordtargets1, practicenonwordprimes = practicenonwordprimes1, practicenonwordtargets = practicenonwordtargets1, relatedprimes = relatedprimes2, relatedtargets = targets2, unrelatedprimes = unrelatedprimes1, unrelatedtargets = targets1, fillerwordprimes = fillerwordprimes1, fillerwordtargets = fillerwordtargets1, fillernonwordprimes = fillernonwordprimes1, fillernonwordtargets = fillernonwordtargets1, practicewords = practicewords1, practicenonwords = practicenonwords1, nonrepeatednonwords = nonwords2, repeatednonwords = nonwords1, primesnonwords = nonwords1prime, nonrepeatedLFwords = LF2, repeatedLFwords = LF1, primesLFwords = LF1prime, nonrepeatedHFwords = HF2, repeatedHFwords = HF1, primesHFwords = HF1prime) / group = (21 of 24) (practicewords = practicewords2, practicenonwords = practicenonwords2, nonrepeatednonwords = nonwords3, repeatednonwords = nonwords4, primesnonwords = nonwords4prime, nonrepeatedLFwords = LF3, repeatedLFwords = LF4, primesLFwords = LF4prime, nonrepeatedHFwords = HF3, repeatedHFwords = HF4, primesHFwords = HF4prime, practicewordprimes = practicewordprimes1, practicewordtargets = practicewordtargets1, practicenonwordprimes = practicenonwordprimes1, practicenonwordtargets = practicenonwordtargets1, relatedprimes = relatedprimes1, relatedtargets = targets1, unrelatedprimes = unrelatedprimes2, unrelatedtargets = targets2, fillerwordprimes = fillerwordprimes1, fillerwordtargets = fillerwordtargets1, fillernonwordprimes = fillernonwordprimes1, fillernonwordtargets = fillernonwordtargets1) / group = (22 of 24) (practicewords = practicewords2, practicenonwords = practicenonwords2, nonrepeatednonwords = nonwords4, repeatednonwords = nonwords3, primesnonwords = nonwords3prime, nonrepeatedLFwords = LF4, repeatedLFwords = LF3, primesLFwords = LF3prime, nonrepeatedHFwords = HF4, repeatedHFwords = HF3, primesHFwords = HF3prime, practicewordprimes = practicewordprimes1, practicewordtargets = practicewordtargets1, practicenonwordprimes = practicenonwordprimes1, practicenonwordtargets = practicenonwordtargets1, relatedprimes = relatedprimes1, relatedtargets = targets1, unrelatedprimes = unrelatedprimes2, unrelatedtargets = targets2, fillerwordprimes = fillerwordprimes1, fillerwordtargets = fillerwordtargets1, fillernonwordprimes = fillernonwordprimes1, fillernonwordtargets = fillernonwordtargets1) / group = (23 of 24) (practicewords = practicewords1, practicenonwords = practicenonwords1, nonrepeatednonwords = nonwords1, repeatednonwords = nonwords2, primesnonwords = nonwords2prime, nonrepeatedLFwords = LF1, repeatedLFwords = LF2, primesLFwords = LF2prime, nonrepeatedHFwords = HF1, repeatedHFwords = HF2, primesHFwords = HF2prime, practicewordprimes = practicewordprimes1, practicewordtargets = practicewordtargets1, practicenonwordprimes = practicenonwordprimes1, practicenonwordtargets = practicenonwordtargets1, relatedprimes = relatedprimes1, relatedtargets = targets1, unrelatedprimes = unrelatedprimes2, unrelatedtargets = targets2, fillerwordprimes = fillerwordprimes1, fillerwordtargets = fillerwordtargets1, fillernonwordprimes = fillernonwordprimes1, fillernonwordtargets = fillernonwordtargets1) / group = (24 of 24) (practicewords = practicewords1, practicenonwords = practicenonwords1, nonrepeatednonwords = nonwords2, repeatednonwords = nonwords1, primesnonwords = nonwords1prime, nonrepeatedLFwords = LF2, repeatedLFwords = LF1, primesLFwords = LF1prime, nonrepeatedHFwords = HF2, repeatedHFwords = HF1, primesHFwords = HF1prime, practicewordprimes = practicewordprimes1, practicewordtargets = practicewordtargets1, practicenonwordprimes = practicenonwordprimes1, practicenonwordtargets = practicenonwordtargets1, relatedprimes = relatedprimes1, relatedtargets = targets1, unrelatedprimes = unrelatedprimes2, unrelatedtargets = targets2, fillerwordprimes = fillerwordprimes1, fillerwordtargets = fillerwordtargets1, fillernonwordprimes = fillernonwordprimes1, fillernonwordtargets = fillernonwordtargets1) </variables>
|
By Dave - 3/23/2015
If you want the <variables> assigned based on the groupnumber you pass in, you need to specify
<variables> / groupassignment = groupnumber ... </variables>
just like you do in the <expt> elements. Otherwise <variables> will be assigned based on subjectnumber by default.
|
By Diane - 3/23/2015
Thanks for the quick and helpful response! Diane
|
|