Howdy, Stranger!

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

Supported by

mt_remap_symmetric() Error in if ((remap_ypos == "up" & trajectories[i, nlogs, ypos] < 0) | :

Hello all!


I've been using mousetrap for a project I'm working on at my job and have usually been able to figure out any issues I have, but I keep coming across an error for one subject in the data. Whenever I try to remap the data I get this error:

Error in if ((remap_ypos == "up" & trajectories[i, nlogs, ypos] < 0) | : 

 missing value where TRUE/FALSE needed


I'm not quite sure how to fix this and the only thing I can say about the data is that the subject that completed the task had some trouble (i.e. click on the wrong picture, go to the wrong picture and hover over it then go to the right picture, or even not move the mouse for a few seconds aka dozing off)


Any input would help because this is the only error I come across when I run the mousetrap preprocessing steps (mt_align_start, mt_time_normalize, mt_subset). Thanks!

Comments

  • edited October 2022

    I should mention that I am using data from EPrime. We take the .txt file and export it as a .csv file so that I can read it in R. The only difference with my mousetrap preprocessing steps is that we have to align our data first and then remap. I believe it has something to do with the way the mouse-tracking experiment is setup in EPrime. I can confirm that those steps work as I've already produced results/plots. I'm just have issues with this particular subject.. I think it has to do with how inconsistent their trajectories are, but I don't know how to handle that issue. Thanks!

  • Hi,

    that's an interesting error and without knowing more about the data it is a bit hard to uncover the source.

    I took a look at the code of mt_remap_symmetric again (I assume that this is the remapping function you are using): The error specifically seems to occur because the last checked y position is a missing value (NA) (see code here: https://github.com/PascalKieslich/mousetrap/blob/master/R/preprocess.R#L218). This might happen because the number of logged y coordinates is less than the number of logged x coordinates (inernally, the function uses the number of x coordinates to determine the last position in a specific trial).

    In practice, this should never happen, but you could check whether this is the case in your data by running:

    # Number of logged x coordinates
    n_logged_x_pos <- mt_count(mt_example$trajectories, dimensions="xpos")
    
    # Number of logged y coordinates
    n_logged_y_pos <- mt_count(mt_example$trajectories, dimensions="ypos")
    
    # Check whether number of logged coordinates is always the same (all should be TRUE)
    table(n_logged_x_pos==n_logged_y_pos)
    

    Best,

    Pascal

  • Hi Pascal,


    Thanks so much for responding! This definitely helps because after looking through the data more, I was able to find that for some subjects, all the data didn't export leaving some missing values for the logged coordinates (as you mentioned is the case).

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