Shuffling blocks while maintaining order in the block

PennController for IBEX Forums Support Shuffling blocks while maintaining order in the block

This topic contains 1 reply, has 2 voices, and was last updated by Jeremy Jeremy 2 weeks, 4 days ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #7511
    Avatar
    staceyra
    Participant

    Hi all, I am brand new to Ibex, so I’m sorry if this is a question is an easy fix.

    I am currently building an experiment that has 4 blocks using a template, and the flow of experiment is training -> experimental blocks. I have 4 blocks, and I want the order within those blocks to be the same across all experiments, but I want for participant 1 to see order: training -> block 1, block 2, block 3, block 4, and for participant 2 to see order: training -> block 3, block 2, block 4, block 1, and so on for all the participants. I’m not sure if seq, randomize, or shuffle, or some combination of those is what I might be looking for. Thanks!

    #7512
    Jeremy
    Jeremy
    Keymaster

    Hi,

    I’ll be assuming that your trials are labeled "block1", "block2", "block3" and "block4". Then you can do this:

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

    Jeremy

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.