Howdy, Stranger!

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

Supported by

Discontinuation rule

Hello! Might be kind of an Introductory question but I am quite new to Opensesame.

I am trying to build a math verification task with blocks of ascending difficulty and want to implement a discontinuation rule when accuracy inside a block drops below 20%. I have tried the break if function but it doesn't seem to work properly. I have also tried to use code but the acc variable seems to refer to the general accuracy on the task and not inside each block.

On that note, when the experiment breaks due to accuracy dropping below 20%, it sort of freezes and does not move to the sketchpad I created to end the experiment. Also, it doesn't log data regularly. Any thoughts/tips? Thank you!

Comments

  • Hi @Tryfonas_Bikos,

    The "break if" option prevents a loop from starting a new cycle buyt does not interrupt an ongoing cycle. So, if you have 10 trials cycling 5 times and fulfill the condition for an interruption through the "break if" paramater in trial 25, the task will finish the ongoing cycle (i.e., reach 30 trials) and then only break out of the loop.

    So, if you wish to interrupt the task on a trial to trial basis, you should use both the "break if" parameter of the loop as well as the "run if" parameter of all of the objects in your sequence, making sure that if a certain condition is met, then both will kick in.

    Hope this helps,

    Fabrice.

    Buy Me A Coffee

  • Hi @Fab Thank you for the reply. I don't want the experiment to stop mid-block. My main struggle is that I want the experiment to stop when a participant has below 0.20 on a specific block of tasks, and the var.acc that I am using in the break_if function concerns the general accuracy in all of the blocks combined, and not in each specific one. I have thought that this might be because I have the block loops for each block nested into one block loop that contains all conditions.

    Also, when the experiment stops, it sort of freezes and doesn't move to a sketchpad I created for the end of the experiment. Any thoughts on that?

  • Hi @Tryfonas_Bikos,

    If the var.acc variables does not do the trick, you can implement your own variable to tracvk accuracy. Simply setup variables to count the number of trials, the number of correct responses and proportion correct to zero.

    var.ntrials = 0
    var.ncresp = 0
    var.pcorrect = 0
    

    This should be placed before the nested loop and set, increment them through code inside the trial sequence (after the response is registered of course). In that same place, set a variable containing the proportion of correct responses:

    var.pcorrect = var.ncresp/var.ntrials
    

    ... and use that variable in your "break if condition" for the nested loop to break off.

    As for the sketchpad freezing, it is not possible to determine the cause just based on your description. Check what condition is required for this sketchpad to end (what duration did you set? Is is expecteing a response? Is it part of some loop and if so, how is the loop set to end?).

    Regards,

    Fabrice.

    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