Howdy, Stranger!

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

Supported by

Item pool confusion

Hey everyone :)

I am new with openSesame and very thankful for this great openSource program and Chapeau! I am very impressed by the program.

I am trying to build an experiment and I am stuck with 2 concrete questions: The experiment itself is straight forward. People simply have to rate statements. Now I built a list with, lets say 300 statements within 3 categorieys (100 each). I divided these statments in 10 blocks. In the first block I would like to show 8 statements out of the category 1 + 8 statements out of category 2 and 8 statements out of category 3. This will change for the next block (12/8/4). Can I select a specific number of items out of a pool?


Additionally (2. question) I do not want a statement to be repeated. If its used. Its used. So in the second/3rd/4th blocks Items should not be repeated. Is it possible to somehow cross-out items if they have been seen once?


Does somebody know how to implement that or has something similiar to that ?

Thank you for you help, greetings Vanessa.

Comments

  • edited July 2021

    Hi @VJay ,

    There are many ways in which you could implement this, but I guess what I would do is define the statements themselves in an inline_script as randomized lists of strings at the very start of the experiment. Something like this:

    import random
    
    category1 = [
        'a statement',
        'another statement',
        # etc.
    ]
    category2 = [
        'a statement',
        'another statement',
        # etc.
    ]
    category3 = [
        'a statement',
        'another statement',
        # etc.
    ]
    
    random.shuffle(category1)
    random.shuffle(category2)
    random.shuffle(category3)
    

    Then, in the block_loop you create a column "category", which indicates the category that you want to sample from. If you want to have a 12/ 8/ 4 ratio, this would simply be implemented by having 12 rows on which the column "category" has the value 1, 8 rows with 2 and 4 rows with 3.

    Finally, at the start of each trial_sequence, you have another inline_script that takes one statement from the correct list and assigns it to an experiment variable. Like this:

    if var.category == 1:
       var.statement = category1.pop()
    elif var.category == 2:
       var.statement = category2.pop()
    elif var.category == 3:
       var.statement = category3.pop()
    else:
       raise ValueError('category should be 1, 2, or 3')  # sanity check
    

    Does that make sense?

    — Sebastiaan

  • I will try out :) thanks a lot

  • Dear Sebastiaan,

    I tried your advices now in diffrent ways, but I am still stuck. somehow openSesame is not taking the statements which I defined at the very beginning of the experiment as you said. Is it possible to check somehow if the lists is working ? I also created in the block loop the category. Here I am not complety sure if I understood it right what you suggested. It looks like this (teil2) now in my openSesame profile.

    • I am getting this error: exception message: category should be 1, 2, or 3

    Can somehelp out again ?

    Kind regards, Vanessa

  • Hi Vanessa,


    The error message comes from the fact that you have some empty rows in your block_loop item. You can remove them by selecting them (from row 7 to 12), right click, "remove 6 row(s.)"


    Note that in the above example, the categories are divided equally, that is, 33% each.


    Cheers,


    Lotje

    Did you like my answer? Feel free to Buy Me A Coffee :)

  • Hi @VJay ,


    To show the statement instead of the category number, you should change the sketchpad content accordingly. Write [statement] instead of [category]



    Hope this helps!


    Cheers,


    Lotje

    Did you like my answer? Feel free to Buy Me A Coffee :)

  • Dear Lotje,

    Yessss.. there was the logical mistake. Now it works like clockwork!!

    Thank you!!


    Vanessa

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