Howdy, Stranger!

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

Supported by

[open] Randomization of trials between different blocks

edited September 2015 in OpenSesame

Hey,

The plan is this:
Using 3 different blocks each with its own unique priming type, but also
to make the trials within and between each block to randomize.

Within each block is simple and instructed in the tutorial,
but I can't figure out how to randomize all trials throughout all blocks.

Thanks ahead
Aviv

Comments

  • edited 11:50AM

    Hi Aviv,

    It depends on what parameters you have aside from 'priming type'. From your plan it seems that you want the possibility that something (aside from priming type) randomly occurs in one block but not in the other? (Otherwise you could've just copied the blocks and only change priming type in each of them).

    What you could do, is make just 1 block, with an amount of trials equal to the 3 blocks you had envisioned combined. Let's say there's 90 trials. What you would then do, is keep track of which trial you're at: place an inline_script before the block item, and insert the line:

     trial = 0   # creates a variable called 'trial'.
    

    In the inline_script in your block (sequence), you insert the line:

     trial += 1 # (trial increases 1 in value) 
    

    and lastly, indicate the priming_type variable - for instance:

     if trial < 31:
           priming_type = 'your_first_type'
     elif trial < 61:
           priming_type = 'your_second_type'
     else:
           priming_type = 'your_third_type'
    

    Does that help?

    Cheers,

    Josh

Sign In or Register to comment.