Random block selection with restrictions


Author
Message
dproost
dproost
Associate Member (84 reputation)Associate Member (84 reputation)Associate Member (84 reputation)Associate Member (84 reputation)Associate Member (84 reputation)Associate Member (84 reputation)Associate Member (84 reputation)Associate Member (84 reputation)Associate Member (84 reputation)
Group: Forum Members
Posts: 7, Visits: 62
Hi all
My goal is to randomly select different blocks to be presented at certain moments in my experiment, but with a few restrictions on the order.
I have basically four kind of blocks: neutral blocks (block.neutral), negative low arousing blocks (block.low), negative high arousing blocks (block.high) and blocks with attention checks (block.attentioncheck1). In the experiment, there should be in total: 4 neutral blocks, 2 negative low arousing blocks, 2 negative high arousing blocks and 3 attention check blocks. They should be randomly selected, but with the restriction that no lists of the same valence should be presented consecutively three times or more (so no 3 neutral blocks or 3 negative blocks after each other). The difficulty is that negative blocks can be both low and high arousal, so you can't simply place restrictions on the repetition of block.low or block.high.

I previously used:
<expt>
/ blocks = [
    1 = block.newwordgeneration;
    2-12 = noreplacenorepeat (block.neutral, block.neutral, block.neutral, block.neutral, block.low, block.low, block.high, block.high, block.attentioncheck1, block.attentioncheck1, block.attentioncheck1);
...

Is there another way to implement this? Thanks for your time!
Kind regards
Dora

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Reading This Topic

Explore
Messages
Mentions
Search