Howdy, Stranger!

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

Supported by

Adaptive Processing Experiment

Hello,

I am fairly new to programming and would appreciate it if someone could guide me through writing an inline script for an adaptive processing experiment.
Basically, the experiment's purpose is to find at which time interval between two stimuli can the participant achieve a 75% accuracy. The participant finishes one trial with a set time interval of 2 seconds and based on their accuracy of this trial, the duration between each sound stimuli increases or decreases until they reach a 75% accuracy. If they receive equal to or greater than 75% accuracy, then the experiment is finished. The time interval at which they were able to reach this accuracy is recorded.

Thus, I need to code an inline-script that can tell the program to decrease the "Duration" of the sound sampler by 500 milliseconds, IF the the accuracy is below 75%. How can I access the "Duration" element in the sampler through my inline_script? Please let me know, thank you so much!!

Sincerely,
Sarah

Comments

  • HI Sarah,

    the attached experiment should get you started.

    Some more thoughts though:

    If they receive equal to or greater than 75% accuracy, then the experiment is finished.

    As accuracy has to be calculated cumulatively, it is possible that you will have 100% on the first trial, just by chance. Therefore, you may want to you use some other metric to make sure that participant can actually reach it. For example, you could skip the first 10 trials, before you start adjusting the timing.
    Similarly, if your participant start out very poorly and respond incorrectly the first 20 trials, they will have 0% accuracy. But if they then, start to produce correct responses, it will take them at least 60 more trials (60/80) to reach the criterion and the timing would be adjusted for all 60 trials. But of course, if they respond correctly 60 times in a row, you wouldn't say that they need the timing after 60 trials to get the task, but rather the one after 20(ish). Do you know what I mean? So also here, you might to think about alternatives, e.g. measuring accuracy/adjusting the timing every 10 trials or so.

    How can I access the "Duration" element in the sampler through my inline_script

    You should check the beginner's tutorial: http://osdoc.cogsci.nl/3.2/tutorials/beginner/#step-10-draw-the-feedback-item
    the power of Python in Opensesame: http://osdoc.cogsci.nl/3.2/manual/python/about/
    and the importance of sequences for Opensesame: http://osdoc.cogsci.nl/3.2/manual/prepare-run/

    Basically, you can set an experimental variable in an inline_script like this: var.dur= 500. In the sampler item, you can add a variable to the duration field so that it is being determined on run time. Simply like: [dur]. This syntax basically means, that the field duration will be filled with the variable var.dur

    I hope this helps. Let me know if you need further advice (but give it a try first yourself).

    Eduard

    Buy Me A Coffee

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