Howdy, Stranger!

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

Supported by

Reaction times only for correct answers

Hey guys,

I'm recently working on a reaction-test with 2 possible responses but only one is right.
Now in my Log-File I can see the reaction times for correct but also for incorrect answers.
To reduce redundancies I want only the reaction times for the correct responses to be saved.
Is there any possibility to do that?

Greetings
-Artur

Comments

  • Yes, but I don't see that advantage. You can save all the data and then during processing (whether you use R, Python, Matlab or good old Excel) you can filter out the incorrect trials.

  • Yes of course and I also know that its not much work but I try to enhance every little bit and that still would be a little enhancement.

    That was just out of curiosity but when there is no possibility I will filter it myself.

  • Hi guys,

    I have to admit, that I find your answer really frustrating cesco :). I have been trying to address this question last couple of hours myself without any luck.
    Let me present a scenario when it is really useful to have reaction times only for certain answers.
    I am working on Go/nogo task, where I'll be dynamically presenting feedback whose timing is based on participant's average reaction times in training blocks. For this, I need to compute reaction times only for Go trials, but at the same time I need accuracy and information about errors for both Go and Nogo trials.
    I tried probably every option within drag&drop + a little bit of scripting, but I cannot really wrap my mind around it so any help would be nice.

    Best regards,

    Jiri.

  • Hi Jiri,

    I think the easiest way would be to use an inline script with an if statement that saves the RT only if the answer is correct, in the attachment an example. Accuracy is still present as var.acc, hope this helps, if the code is unclear let me know, good luck,

    Roelof

  • Hi Roelof,

    thanks a lot for a reply! I have been able to adapt the first part of your code, but I am struggling with the second part: computing the mean response time for trials of interest. My code always prints only the last of response time but does not compute the mean (I've tried to save the go_rt as a list or as a variable, it does not matter).

    save rt for trials of interest in a new variable

    var.go_rt = []
    if var.correct == 1 and var.condition == 'Go':
    var.go_rt.append(var.response_time)

    create a variable which contains the mean rt for trials of interest

    var.mean_rt = []
    if len(var.go_rt)>0:
    var.mean_rt = sum(var.go_rt)/len(var.go_rt)

    I tried to shuffle the scripts all over the place, but I guess my problem is that I still don't understand the way inline script in OS works :).

    Thank you for your time.

    Best,

    Jiri.

  • The code seems to work as far as I can tell; but the problem might be that you empty the list at the start of the script var.go_rt = [], which means that every time your list starts as an empty list, if you have a look at the experiment in the attachment you can see the list is initiated outside of the loop, so that it is not emptied every time, let me know if this solve the problem, good luck

    PS: the mean_rt variable will always only be one value right? right now you are making a list out of this variable as well, but you could get rid of var.mean_rt = []

  • Great, thanks. I was able to make it work somehow by making a list from go_rt.

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