Howdy, Stranger!

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

Supported by

How can be done trials in a task in diffrent proportion ?

Hi,
I'm trying to create a task switching task (Number-letter task) which has to include switch and non-switch trials. In the task switch trials should be %40 and non-switch should be %60.
I just wrote stimuli on the loop item, and create the list with the "full-factorial design " function. Then I wrote [letter][number] the stimuli sketchpad item to provide display stimuli side by side.

But I need help about how can be control switch and non-switch trials proportion. Could you please help me?

Comments

  • Hi,

    Add an inline_script before your loop and put this code in there (prepare phase):


    import random no_trials = 20 ratio_rep = 0.6 # how many repetition trials are in a block # make sure that the ratio can be reproduced with the number of trials var.trials = [0]*0.6*20 + [1]*(1-0.6)*20 random.shuffle(var.trials)

    Now the variable var.trials will have 0s for all the repetitions and 1s for all switches. In your experiment you just have to access every item in that list one after another, so that you get the correct type per trial.

    Does that help?

    Eduard

    Buy Me A Coffee

  • edited January 2018

    Thank you very much for the response :)
    But unfortunately, when I tried your solution, I got the "can't multiply sequence by non-int of type 'float'" error for the "var.trials = [0] * 0.6 * 20 + [1] * (1-0.6) * 20" line. I searched about this but ı couldn't understand the solutions suggested because the examples are not similar to mine and they are very complicated for me.

  • Hi,

    my bad, replace var.trials = [0] * 0.6 * 20 + [1] * (1-0.6) * 20 with var.trials = [0] * int(0.6 * 20) + [1] * int((1-0.6) * 20)

    Does that work?

    Buy Me A Coffee

  • Hi,
    it works but I am sorry that I couldn't understand how it show switch ( changed response e.g. b to n) and non-switch (unchanged response e.g. b and again b) trials?

    I tried to analyze the logic from the quickrun file, but I couldn't get it. Could you please help? Thank you :)

  • var.trials will contain 0s and 1s in a certain proportion. When you present your stimuli, you have to do it contingent on the number in the list. If var.trials[current_trial_number] == 0 present a repeated stimulus, else, present a switched stimulus. The exact way to implement this. depends on your stimuli and your preference, there are multiple options.

    Does that make sense?

    Buy Me A Coffee

  • I am sorry it is a bit much for novices, but I am studying on hard. I believe I will achieve B) Until that time I will enter stimuli manually and present sequentially. Thank you very much :)

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