Howdy, Stranger!

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

Supported by

Randomization of stimulus sequence within participants.

Hi there!

I am new to OpenSesame but I have some experience with using code. I want to set up an experiment that goes as such:

I have a pool of 5 stimuli.

In each trial, I want 3 of those stimuli to be presented.

I want all possible combinations of stimuli to be presented in each run of the experiment. However, in each trial, I want OpenSesame to show the stimuli in random order. So, every participant will see all possible combinations of stimuli, but between participants the combinations should be presented in random order.

Anyone has any idea of how I could do that or at least point me to a direction of search?

Thank you very much in advance, I would appreciate any help!☺️

Comments

  • Hi @amoupsou,

    Not sure I understand your description. "I want all possible combinations of stimuli to be presented in each run of the experiment. However, in each trial, I want OpenSesame to show the stimuli in random order". If you present each combination in a random order, you won't be presentng every combination...

    Are you trying to say that you want all possible of three stimuli among a fixed list of five presented to each participant, but that the order of these three stimuli should be random?

    Best,

    Fabrice.

    Buy Me A Coffee

  • Hi @Fab , thank you very much for taking the time.

    You got it right, it is exactly what I mean!

  • Hi @amoupsou,

    In that case, the solution is fairly simple:

    (1) Create a loop and populate it with all the sub-selection of 3 stimuli from your set of 5. One sub-selection of 3 stimuli per row.

    1. {1, 2, 3}
    2. {1, 2, 4}
    3. {1, 2, 5}
    4. {1, 3, 4}
    5. {1, 3, 5}
    6. {1, 4, 5}
    7. {2, 3, 4}
    8. {2, 3, 5}
    9. {2, 4, 5}
    10. {3, 4, 5}

    Set your loop to run the rows in a random order. Each stimulus should be in its own column (that you for example call "stim1, "stim2" stim3")

    (2) to ensure that the stimuli are presented within each trial in a random order, use the shuffle_horiz function in the script of the loop: https://osdoc.cogsci.nl/4.0/manual/structure/loop/#shuffle_horiz. IN the example I set above, you'd have to add the following to the loop's script:

    shuffle_horiz stim1 stim3

    This method will ensure that all combinations of 3 stmuli from your set of 5 is presented once, in a random order, and that the 3 elements inside each combination are presented randomly for each participant.

    Hope this helps,

    Fabrice.

    Buy Me A Coffee

  • Hi @Fab , thank you very much for taking the time.

    I designed the experimental loop with a loop item. After it, I have entered the sketchpad items that will present each stimulus. I wonder though, if I need to enter a script, should I enter it before the first sketchpad?

    Thank you very much for helping out!


  • Hi @amoupsou,

    It all depends what you want that script to achieve. But if you're talking about the loop's script, you need to access the loop's script, not adding a Python script object anywhere.

    To access the loop's script, simply go here:

    You'll then see the loop's script. Simply add your shuffle_horiz instruction there.

    Hope this helps,

    Fabrice.

    Buy Me A Coffee

  • edited November 2023

    Hi,

    I wonder though, if I need to enter a script, should I enter it before the first sketchpad?

    Is this question independent of your previous question? The solution that @Fab described does not require an inline_script item. You have to directly write the combinations into the loop table (`experimental loop`) and add the shuffle_horiz to the script of the experimentalloop script. You can find it by clicking on the little icon with the two sliders in the top right corner:

    and select `view script` there. Once there, you can copy the command in there, and save it.

    Does this make sense?

    Eduard

    edit: Guess Fab was quicker ;)

    Buy Me A Coffee

  • @Fab @eduard thank you both very much, it worked!

Sign In or Register to comment.

agen judi bola , sportbook, casino, togel, number game, singapore, tangkas, basket, slot, poker, dominoqq, agen bola. Semua permainan bisa dimainkan hanya dengan 1 ID. minimal deposit 50.000 ,- bonus cashback hingga 10% , diskon togel hingga 66% bisa bermain di android dan IOS kapanpun dan dimana pun. poker , bandarq , aduq, domino qq , dominobet. Semua permainan bisa dimainkan hanya dengan 1 ID. minimal deposit 10.000 ,- bonus turnover 0.5% dan bonus referral 20%. Bonus - bonus yang dihadirkan bisa terbilang cukup tinggi dan memuaskan, anda hanya perlu memasang pada situs yang memberikan bursa pasaran terbaik yaitu http://45.77.173.118/ Bola168. Situs penyedia segala jenis permainan poker online kini semakin banyak ditemukan di Internet, salah satunya TahunQQ merupakan situs Agen Judi Domino66 Dan BandarQ Terpercaya yang mampu memberikan banyak provit bagi bettornya. Permainan Yang Di Sediakan Dewi365 Juga sangat banyak Dan menarik dan Peluang untuk memenangkan Taruhan Judi online ini juga sangat mudah . Mainkan Segera Taruhan Sportbook anda bersama Agen Judi Bola Bersama Dewi365 Kemenangan Anda Berapa pun akan Terbayarkan. Tersedia 9 macam permainan seru yang bisa kamu mainkan hanya di dalam 1 ID saja. Permainan seru yang tersedia seperti Poker, Domino QQ Dan juga BandarQ Online. Semuanya tersedia lengkap hanya di ABGQQ. Situs ABGQQ sangat mudah dimenangkan, kamu juga akan mendapatkan mega bonus dan setiap pemain berhak mendapatkan cashback mingguan. ABGQQ juga telah diakui sebagai Bandar Domino Online yang menjamin sistem FAIR PLAY disetiap permainan yang bisa dimainkan dengan deposit minimal hanya Rp.25.000. DEWI365 adalah Bandar Judi Bola Terpercaya & resmi dan terpercaya di indonesia. Situs judi bola ini menyediakan fasilitas bagi anda untuk dapat bermain memainkan permainan judi bola. Didalam situs ini memiliki berbagai permainan taruhan bola terlengkap seperti Sbobet, yang membuat DEWI365 menjadi situs judi bola terbaik dan terpercaya di Indonesia. Tentunya sebagai situs yang bertugas sebagai Bandar Poker Online pastinya akan berusaha untuk menjaga semua informasi dan keamanan yang terdapat di POKERQQ13. Kotakqq adalah situs Judi Poker Online Terpercayayang menyediakan 9 jenis permainan sakong online, dominoqq, domino99, bandarq, bandar ceme, aduq, poker online, bandar poker, balak66, perang baccarat, dan capsa susun. Dengan minimal deposit withdraw 15.000 Anda sudah bisa memainkan semua permaina pkv games di situs kami. Jackpot besar,Win rate tinggi, Fair play, PKV Games