Howdy, Stranger!

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

Supported by

Randomization and constraints between column

Hi to all,

I'm programming this experiment in Opensesame and I'm struggling with loop constraints.

I have a loop table like this:

which need to be repeated 5 times in random order. What I would like to do is to avoid the successive presentation of the same pairing, such as yourself-a stranger followed by yourself-a stranger. The ideal thing would be something similar to constrain [variable] mindlist, but that can be applied to the pairing.

I also thought about a different approach: I might change the loop table into this:

set repetition to 10 times (to obtain the same number of trials) and use the shuffle function on the identity_2 . But then I would need to avoid the presentation of trials in which identity_1=identity_2 (like, yourself-yourself pairing) and I couldn't find anything like this in the "looping and independent variables" section.

In the forum, I found a solution which basically rewrite the loop in Python, but the experiment will be implemented online and inline_script are not supported.

Thanks in advance,

Saiph

Comments

  • Hi Saiph,

    If I understand your problem correctly, then you can solve it by adding a third column, say pair , and giving this a unique value for each of the six pairs, say 1 … 6. And then you can use the mindist constraint on this column.

    Hope this helps!

    Cheers,

    Sebastiaan

  • Hi Sebastaan!

    Such a simple solution, don't know how I haven't thought about it, it works like a charm.

    Thank you!

    Saiph

Sign In or Register to comment.