Howdy, Stranger!

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

Supported by

Problem with constrain command

Greetings!

I am attempting to create a sustained-attention-to-response task (SART). The SART consists of 9-trial blocks in which a single digit (1-9) is randomly presented, with the constraint that each digit is presented only once per block. The digits are presented in one of five possible type sizes, with the constraint that no type size appears more than twice per block.

I have created a loop representing all 45 possible combinations of digits and type sizes. I want to randomly present 9 combinations of digits and type sizes per 9 trial block. To implement this, I have added the following constraints to the OpenSesame script:

constrain digit maxrep=1

constrain font_size maxrep=2

But, even with these constraints added, digits are appearing more than once and font sizes more than twice per block.

I feel that I must be missing something obvious either in the use of the constrain commands or in some other settings for the loop items, but even after trying multiple possible solutions and watching the relevant tutorials I can't figure out the issue!

Any help would be most greatly appreciated. I've attached the script for reference.

Thank you for your development and support of this great tool!


Comments

  • Hi,

    The maxrep constraint refers to direct repetitions. So constrain digit maxrep=1 means that digit will not have the same value on two consecutive trials, but the same value may repeat at longer intervals.

    In your case, it seems that you want to randomly pair digit and font_size. To do this, I would create a loop table with 9 rows, and then use shuffle digit to randomly shuffle the digit column (but not the other columns), thus breaking the correspondence between digit and font_size. Does this make sense?

    One thing to consider is that you have 9 values for digit and 5 for font size, which is unbalanced. (Some font_size values will occur more often than others.) I would use, say, 10 digits and 5 font sizes, or 8 digits and 4 font sizes. That strikes me as more elegant.

    Cheers!

    Sebastiaan

    Buy Me A Coffee

  • Thanks Sebastiaan! This is very helpful. Unfortunately I'm stuck with the 9 digits and 5 font sizes because this a direct replication of a specific version of the task, but I think I should be able to build it out using the information you provided here. Thanks again!

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