Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Supported by

counterbalancing 4 blocks

hi,
I am quite new to OpenSesame, so I am currently doing an experiment that involves in 4 block, and I am trying to counter-balance the order of the blocks, which should have 24 different combinations. I have watched the counter-balancing tutorials, and I only have 4 combinations after followed those steps mentioned in the video, so could someone help?

many thanks

may

Comments

  • Also, how can the results file comes out with a clear structure, for example, with block names?
  • Hi,

    For this, you need to do a few things:

    • First get all possible orders of the four blocks. You can do this with itertools.permutations().
    • Then get one order (from all possible orders) based on the subject_nr variable
    • Use this order to define four variables: block1, block2, etc.
    • And then use these variables to determine which block is executed first, second, etc.

    This probably sounds a bit abstract, but it's not that complicated. I attached a simple example.

    Cheers!
    Sebastiaan

    Thanked by 1may69

    There's much bigger issues in the world, I know. But I first have to take care of the world I know.
    cogsci.nl/smathot

Sign In or Register to comment.