Howdy, Stranger!

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

Supported by

IAT - Presenting Stimuli from 2 Categories Alternately

Hello!

I am trying to set up an IAT on OpenSesame, and I have done a large portion of it. However, for the congruent and incongruent blocks for which participants have to categorize stimuli from 2 different categories (in my case, it would be nationality and ethnicity), and I require the stimuli to appear alternately (e.g., nationality, ethnicity, nationality, ethnicity...).

Is there a simple code I can use to make this happen? I would really appreciate some help!

(Note: this experiment will eventually have to make its way to OSWeb to be conducted online).

Comments

  • Hi @Ashleigh,

    Glad to hear that you've made good progress with your task 👍️

    I'm assuming that this is the task you were referring to in an earlier thread (https://forum.cogsci.nl/discussion/7394/how-to-present-a-random-subset-of-stimuli#latest).

    In OS, you could edit the loop's script in Python and use the constrain command to make sure that two trials of a same type (as identified by a specific variable) don't get repeated. Unfortunately, this method is not supported in OSWeb at present.

    So I'd say that you have to options (though there may be more).

    Option A is coding. You could use Javascript to shuffle your trials and to keep shuffling until the solution fulfills certain conditions (in your case, that consecutive trials are not of the same type). This might be a little tricky, however, as the task might get stuck in generating shuffled lists for a while until one is found that satisfies your conditions.

    An alternative would be to create sub-lists (one for ethnicity trials and another for nationality trials), shuffle these randomly, and then programmatically create a list of trials by assembling the two in an alternating way. So for example, if you have a list of 20 ethnicity trials and 20 nationality trials, you could shuffle each randomly and independently, then build the list of trials by picking the first from the shuffled ethnicity list, then the first from the shuffled nationality list, then the second from the ethnicity list, then the second from the nationality list etc. You would then have, on every trial, to call the appropriate element from that trials list. All of this using code. Depending on how you currently have your task, this may be more or less difficult to implement, but I think it would be an efficient option.

    Option B becomes possible thanks to the latest version of OSWeb (1.4) and would consist in offloading the quasi-randomization to build a series of lists that fulfill your conditions. You'd have to create them outside OS and save them as csv files. OSWeb 1.4 supports external files as a source for loops. So, let's imagine that you've set up a hundred different possible stimuli files that contain the trials in the order you want, you could use some javascript code to pick a random on of these files, and then have the loop load the trials from that file. I publish a post not long ago to demonstrate how to do this:

    https://forum.cogsci.nl/discussion/7413/demo-how-to-parse-a-csv-to-populate-a-loop-osweb-1-4#latest

    This second method just shifts the problems outside OS,though. So, unless you have a way to easily generate lots of csv files, I think that option A is best.

    Hope this helps!

    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