Howdy, Stranger!

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

Supported by

Delay Discounting

Dear OpenSesame community

I’m currently working on a delay discounting task and I want to integrate an inline script which calculates an indifference point. Richards, Zhang, Mitchell and de Wit (1999) programmed a random adjusting-amount procedure to use the answers to previous questions to narrow the range of values from which the value for the next question was selected. I think it is a great way to determine the indifference point but it seems quite complicated (if someone has used this procedure on OpenSesame I would be very thankful for him/her to send me the script :)). Right now I’m settling for an easier procedure by Du, Green, and Myerson (2002). The variable amount starts with half of the amount of the standard amount (say the standard amount is 100$ then the variable amount is 50$). If the participant chooses the standard amount the variable amount increases on the next trial by ¼ of the standard amount (in this case 50 + 25 = 75$). If the participant settles for the 75$ in the next round than the amount decreases by 1/8 of the standard amount (in this case 12.50$) and so on. This graphic by Frye, Galizio, Friedel, DeHart and Odum (2016) is very helpful to understand the principle:

I would like to integrate this procedure but I’m having trouble to do so. Could you please tell me how to create a code for the random adjusting-amount procedure?

Thank you so much in advance for your help!
If you need further information, please let me know!

Kind regards
Erwin

Comments

  • Hi Erwin.
    I'm glad to read your petition because I'm working on it right now and trying to built the adjusting amount procedure on OpenSesame, as well. Did you get any answer about it?

    Regards,
    Gisel

  • Try this:

    RespKeys = keyboard(keylist = ['x','m']) # your responses on the keyboard
    
    var.low=50 #starting value
    var.high=100 #starting value
    
    for i in [2,4,8,16,32]:
        Stim=canvas()
        Stim.text('Please select x for: '+str(var.low) + '  or select m for: ' + str(var.high)  )
        Stim.show()
        Resp, Resp_t = RespKeys.get_key()
        log.write_vars()
    
        if Resp=='x':
            var.low=var.low - 50/i
        elif Resp=='m':
            var.low=var.low + 50/i
    

    Greetz
    Stephan

  • Thank you, Stephan.
    Please, let me interpret your code to see if I'm understanding. – Is the standard amount 100 and the i values (2,4,8,16,32) are the different delays?

    Does this code have to be written into the loop or sequence tool? – I am new in OpenSesame and learning about it.

    Thank you so much in advance for your help!
    Best regards,
    Gisel

  • Hi Gisel,

    in a new experiment. make a sequence. Put the inline_script and a logger item behind.
    That's it.
    Try the code if it fits for your porpuse. Then adopt it as you need it.

    The standard amount 100 keeps always the same as in the picture by Erwin.
    The lower amount changes. That's what you need the i values for. See the calculation for var.low at the end.

    Enjoy
    Stephan

  • Hi Stephan,

    Thank you for your help!

    Best wishes,
    Gisel

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