Randomize across and within blocks

PennController for IBEX Forums Support Randomize across and within blocks

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #8038
    lilyokc
    Participant

    Hi Jeremy,

    I’m trying to present my data in a few blocks with randomized block order. I used the code you gave in this thread to do that. However, I cannot figure out a way to modify the code such that within-block order is also randomized, which is what I want. Is there a way to do that?

    Thank you so much for your help!

    #8040
    Jeremy
    Keymaster

    Hi,

    Use randomize("label") to get a randomized series of trials labeled “label” where you would just use "label" to get a non-randomize series:

    PennController.ResetPrefix(null)
    
    var blocks = [randomize("block1"),randomize("block2"),randomize("block3"),randomize("block4")];
    fisherYates(blocks);
    
    Sequence("training", ...blocks)

    Jeremy

    #8042
    lilyokc
    Participant

    It works. Thanks so much!!

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.