Millisecond Forums

Randomizing Blocks

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

By tianka - 2/5/2015

Hello-

I was wondering if there is a way to randomize the order of blocks within an experiment. 

Specifically, the experiment involves four blocks of image lists (A, B, C, D) interspersed between two blocks of films (chosen from 6 possible films). 

There are 144 ways the blocks can be ordered (i.e. A film1 B film2 C D; A film1 B film2 D C; A film1 D film2 C B). So far, I've hand coded the different block orders in separate experiments, but Is there a simpler way to randomize the the 144 permutations? 

<expt>
/blocks = [1=Subject_ID; 2=ROCinstructions; 3=ROCpractice; 4=ROC_ListA; 5=film_hughes; 6=PANAS; 7=ROC_ListB;
8=film_gump; 9=PANAS; 10=ROC_ListC; 11=arrowpractice; 12=arrow; 13=ROC_ListD]
/subjects = (1 of 144)
/groupassignment = random
</expt>

<expt>
/blocks = [1=Subject_ID; 2=ROCinstructions; 3=ROCpractice; 4=ROC_ListA; 5=film_hughes; 6=PANAS; 7=ROC_ListB;
8=film_gump; 9=PANAS; 10=ROC_ListD; 11=arrowpractice; 12=arrow; 13=ROC_ListC]
/subjects = (2 of 144)
/groupassignment = random
</expt>

Thanks!
By Dave - 2/5/2015

If you want to randomize the blocks, you do that in the exact same way as you would randomize trials:

<expt>
/blocks = [1=Subject_ID; 2=ROCinstructions; 3=ROCpractice; 4,7,10,13=noreplace(ROC_ListA, ROC_ListB, ROC_ListC, ROC_ListD); 5=film_hughes; 6=PANAS; 8=film_gump; 9=PANAS; 11=arrowpractice; 12=arrow]
...
</expt>
By tianka - 2/9/2015

Thanks so much!