Millisecond Forums

Combine two item sets into one/ random trial presentation from unequal item sets

https://forums.millisecond.com/Topic19134.aspx

By fflade - 5/24/2016

Hello,

I find myself with two item elements: one has 15 items, the other one 4. The one with only 4 items is initially empty and filled during initialization. Now, i'd like to display all 29 items randomly. Every item should be displayed, but none of them twice. How do I do this? I tried list elements, and various noreplace() everywhere, but I seem to miss the point.


<item speakerselect_1>
</item>

<picture speakerselect_1>
/ items = speakerselect_1
/select = noreplace
/ size = (40%,40%)
/ position = (50,50)
/ valign = center
</picture>

<picture speaker_2>
/ items = speaker_2
/ select = noreplace
/ size = (40%,40%)
/ position = (50,50)
/ valign = center
</picture>

<item speaker_2>
/5  = "20.jpg"
/6  = "21.jpg"
/7  = "22.jpg"
/8  = "23.jpg"
/9  = "24.jpg"
/10 = "25.jpg"
/11 = "26.jpg"
/12 = "27.jpg"
/13 = "28.jpg"
/14 = "29.jpg"
/15 = "30.jpg"
/16  = "16.jpg"
/17  = "17.jpg"
/18  = "18.jpg"
/19  = "19.jpg"
</item>

<trial environment_1_figure>
/stimulusframes=[1=speakerselect_1]
/trialduration = 1000
</trial>

<trial environment_1_ground>
/stimulusframes=[1=speaker_2]
/trialduration = 1000
</trial>

<block environment_1>
/ trials = [1-19=noreplace(environment_1_figure, environment_1_ground)]
</block>

This is not a working example, but I hope that makes it clearer. Thanks a lot!
By Dave - 5/24/2016

You need to enter your trials into the <block> element's /trials selection pool in the required proportions:

You want 4 "environment_1_figure" trials and 15 "environment_1_ground" trials, so that's what you need to specify:

<block environment_1>
/ trials = [1-19=noreplace(environment_1_figure, environment_1_figure, environment_1_figure, environment_1_figure,
environment_1_ground, environment_1_ground, environment_1_ground, environment_1_ground,
environment_1_ground, environment_1_ground, environment_1_ground, environment_1_ground,
environment_1_ground, environment_1_ground, environment_1_ground, environment_1_ground,
environment_1_ground, environment_1_ground, environment_1_ground
)]
</block>
By fflade - 5/24/2016

Thank you so much, Dave!

And here is a bonus question: How do I put those nineteen loose pictures into a repeat likert type question?

Cheers,
Felicitas

(I hope this does not sound lazy, but at least the last answer was not totally obvious, I think)
By Dave - 5/24/2016

I'm not sure what you mean by "repeat likert type question", but <likert> elements work exactly like trial elements, so it essentially works the same way as what you already have with your <trial> elements.
By fflade - 5/26/2016

Yeah, I solved that one. Sorry for bothering you, but thanks for all the other solutions! It is very amazing how fast you answer.

Best,
Felicitas