Howdy, Stranger!

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

Supported by

[open] 4 group randomization

edited August 2013 in OpenSesame

Hi there,

I am quite new at opensesame and I did all tutorials I could find but I guess the most obvious and simple still makes me confused:
I want to do an easy (social-psychology) experiment with 4 groups. Each group has a different sequence of 4 product-picture stimulus material with some questions after each picture.

Usually I would determine the different product pictures, claim to the picture and source of the claim as different variables. It is a 4x2x2 design. But we really just need 4 different sequences or 4 groups and not a complete randomization. Thus I thought it's easier to build up 4 different sequences and show each participant in a randomized order one of these sequences. I will have to put the overlapping variables together afterwards but that is a minor concern.

My question is now: How can I randomize different sequences, since I can't define the different sequences as variables in a loop.
Is there any possibility? Or is there a better way for randomzing my groups?

cheers,
Johannes

Comments

  • edited 4:35AM

    Hi Johannes,
    There may be more elegant way of solving your problem, but I've done something similar as follows.

    • First, you'll need to generate your four sequences, and place them within the experiment structure so that they would run one after the other. You'll probably want to place them after the instructions, if the same instructions apply to each sequence.

    • Next, you can place an inline_script section at the start of your experiment, containing something like this:

    from random import randint
    sequence_number = randint(1,4)
    exp.set('sequence_number', sequence_number)
    
    • Finally, go to the sequence item which contains your four possible sequences (sorry if this is starting to sound confusing!), which in this case will probably be the automatically generated one, called 'experiment'.
      Beside each of your sequences, there's a 'Run if' option, which is set to 'always' by default. Change this to `[sequence_number] == 1' for the first sequence (and 2, 3, and 4 for the others).

    What all this will do is essentially:
    - Generate a random number between 1 and 4.
    - Run sequences 1, 2, 3, or 4, depending on the number generated.

    Hope this helps!

    Eoin

  • edited 4:35AM

    Oh, another possibility is, instead of completely randomizing which sequence is presented, you counterbalance it according to the subject number.

    subject_nr = exp.get('subject_nr')
    sequence_number = (subject_nr % 4) + 1 
    # Gives the remainder of subject_nr divided by 4, plus 1.
    # Answer will be either 1, 2, 3, or 4.
    exp.set('sequence_number', sequence_number)
    
  • edited 4:35AM

    hi,
    cool thank you very much! For your first option I would not need any loop right?
    your second option is very nice, to make sure I have equal sample sizes in every group. But if you just divide the subject number by 4 and ad 1 ist that getting bigger and bigger, since the subject number increases with every participant?

    1000 thanks!
    Johannes

  • edited August 2013

    ok, never mind, I figured it out (about the subject number divided by 4 +1 :)

    solved....

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