On Randomization


Author
Message
Apalapucia
Apalapucia
New Member (8 reputation)New Member (8 reputation)New Member (8 reputation)New Member (8 reputation)New Member (8 reputation)New Member (8 reputation)New Member (8 reputation)New Member (8 reputation)New Member (8 reputation)
Group: Forum Members
Posts: 3, Visits: 5
Hey everyone!

I’m working on a study in Inquisit 6 where I need to present a set of images multiple times, and I am quite new at coding. My main goal is:

To show all images an equal number of times throughout the experiment.
To present the images in a random order each time, so the order isn’t predictable.
To keep the code as simple and minimal as possible.

I have 16 images and want each to appear 5 times total (80 trials). How can I set up the loop or list so it randomises the images every repetition, but still keeps the frequency equal? Any advice or example code snippets would be much appreciated!

Thanks in advance.

<item Black_Sad>
/1 = "B01_Sad_02_Melancholy.bmp"
/2 = "B02_Sad_02_Melancholy.bmp"
/3 = "B03_Sad_02_Melancholy.bmp"
/4 = "B04_Sad_02_Melancholy.bmp"
</item>

<item Black_Angry>
/1 = "B01_Anger_02_Indignation.bmp"
/2 = "B02_Anger_02_Indignation.bmp"
/3 = "B03_Anger_02_Indignation.bmp"
/4 = "B04_Anger_02_Indignation.bmp"
</item>

(...)

<picture Black_Sad_p>
/items = Black_Sad
/size = (50%, 50%)
/ select = noreplace
/ erase = true(0, 0, 0)
</picture>

<picture Black_Angry_p>
/items = Black_Angry
/size = (50%, 50%)
/ select = noreplace
/ erase = true(0, 0, 0)
</picture>

(...)

<block ExperimentalBlock1>
  / preinstructions = (test) // Instructions for the first experimental block
  / trials = [1-80 = noreplace (Black_Angry_l, Black_Sad_r, White_Angry_l, White_Sad_r)]
    / bgstim = (AngerLeft, SadnessRight)
</block>

<block ExperimentalBlock2>
  / preinstructions = (test2) // Instructions for the first experimental block
  / trials = [1-80 = noreplace (Black_Angry_r, Black_Sad_l, White_Angry_r, White_Sad_l)]
    / bgstim = (AngerRight, SadnessLeft)
</block>





GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View
Threaded View
Apalapucia - 2 Months Ago
Dave - 2 Months Ago
Apalapucia - 2 Months Ago
Dave - 2 Months Ago
Dave - 2 Months Ago
                         Thank you so much! I will check this out.
Apalapucia - 2 Months Ago
                             One other thing, which may or may not be relevant for your current...
Dave - 2 Months Ago

Reading This Topic

Explore
Messages
Mentions
Search