Avatar

Howdy, Stranger!

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

Supported by

Pascal

About

Username
Pascal
Joined
Visits
176
Last Active
Roles
Moderator
Thanked
14

Comments

  • Hi Mike, glad to hear that resampling solved the problem. I again thought about the potential biasing problem: I actually think that resampling itself should not bias the velocity calculation. The only bias that could occur is if a change in positio…
  • Hi, glad to hear that you enjoy working with the mousetrap package. :) Regarding the paper you mentioned: yes, you are looking in the right place (for anyone else interested: the R markdown file can be found on OSF at https://osf.io/s4wy5/). Within …
  • Hi all, unfortunately I don't think you can use the mousetrap plugin while showing a video as it is usually tracking the mouse while a constant canvas / sketchpad is shown. Probably you would need to write some custom code which I believe is possibl…
  • Hi Mike, the angle calculation looks fine to me. The aggregated plot might be a bit misleading as it averages the values for each specific time point and if one trial only has a recorded position at say timestamp 501 ms it will not be reflected for …
  • Hi Mike, if the problem happens also with the xpos, my guess would be that the cause is the following: there could be a few (probably very few) trials in the mismatch condition where the time passed between two adjacent logged positions is > 30ms…
  • Hi Mike, that's weird indeed! Without the raw data to reproduce it I have to admit that I don't know the answer. Could you try to replace y="vel" with y="xpos" to see whether there is a general problem or whether this problem is…
  • Hi Mike, we do not calculate it directly. However, the mt_angles function calculates the movement angle for every point of the trajectory, including a vertical based angle. If you find a way to filter the trajectory beforehand so it only contains th…
  • Hi there, are you getting this error message when running the example experiment on your laptop or on the Android tablet? Best, Pascal
  • Hi there, you already have correctly identified the source of the issue :) . Because there is one RT variable in mt_data$data and one RT variable in mt_data$measures, the dplyr::inner_join function adds a .x to the variable from the first dataset (m…
  • Sorry for the very late reply! With psynteract, you could do two things that would maybe be suited for your problem: The psynteract_connect item is required so all clients connect to the server. Aftetwards, a wait screen is displayed until you start…
  • Hi there, the error probably occurs because psynteract tries to connect to an open session on the psynteract server and it seems that there is no open session. You could either try to open one or activate the "Offline test mode" option in …
  • Hi Yu-Cheng, could you specify which OpenSesame version you are using? And which version of the mousetrap plugin (i.e., the development version or one previously released version)? Best, Pascal
  • Hi Gina, I would like to use mousetrap to analyze how people navigate between landmarks on the screen using the keyboard/mouse -- this means that the start and end points are not the same, so if I understand correctly, I would need to spatially norm…
  • Hi all, thanks a lot for providing a solution! I was out of office for a conference so I only checked the forum again today. Regarding the times < 300 ms: I think that this has to do with ensuring an accurate presentation time taking the monitor…
  • Hi, this error could occur if you are using the "psycho" backend together mousetrap. As noted in the mousetrap documentation, mousetrap is not compatible with this backend. If you are using the "psycho" backend, could you switch …
  • Hmm this is weird. I just checked the installation procedure using OpenSesame 3.2.7 under Windows 7 and Windows 10 and it worked for me. I run OpenSesame as an administrator and then paste the following two lines in the debug window import pip pip.m…
  • The message you are posting is not an error but a warning, because OpenSesame is using an old version of pip. If you have run the commands specified above, you simply need to restart OpenSesame and the mousetrap items should be present. If not, coul…
  • Hi, if you use the mousetrap_response item to collect the mouse response, you can use it to reset the mouse to the specified position. It also automatically computes the initiation_time variable, which is the time until any movement was initiated (w…
  • Hover effects are currently not implemented in mousetrap so I think that Eduard's approach makes the most sense. A similar strategy using mousetrap could be (copied and adapted from Eduard's post): 1) Create and show default canvas 2) Enter a while …
  • This discussion is a duplicate of the following discussion so I closed it: http://forum.cogsci.nl/discussion/5001/plug-in-not-working
  • Hi there, to install the mousetrap plugins, you can follow installation instructions in the mousetrap-os documentation: https://github.com/pascalkieslich/mousetrap-os#installation If you are using OpenSesame 3.2 or later, make sure to install the de…
  • Hi Takashi, there is no mousetrap function that allows you to split a trajectory directly. However, you can do this yourself by only passing a selected range of positions to mt_measures: library(mousetrap) mt_example <- mt_time_normalize(mt_examp…
  • Hi Matt, the quoted part relates to inserting the actual labels as text on the screen. What you mean is naming the rect elements, i.e., what is described afterwards: "If in the following variant 3a is used to define buttons (the easier and pref…
  • Hi Gérard, I am glad your problem is solved. Just a short comment on the button names: It is possible to specify button names using left_button etc. as Allowed mouse buttons in the mousetrap_response item. This has been implemented since mouse…
  • Hi Gérard, I don't quite understand what you mean with "mouse entry block". Could you describe what you mean with this? And what it is exactly that you are trying to achieve? Mousetrap can e.g. be used if you want to draw buttons on a sketchpad an…
  • Hi Bar, hi Sebastiaan, I have not tried out OpenSesame & mousetrap with Windows tablets so far. However, internally mousetrap uses OpenSesame's Mouse.get_click function to detect cursor clicks. So, based on what Sebastiaan suggested I would s…
  • Regarding question 2: indvidual ideal end points per trial (other than the actual start and end points, that are ued by default) are so far not implemented in mt_deviations. As a workaround, you could create subsets of the data using mt_subset for e…
  • Hi J, regarding question 1: you identified the problem correctly - you need more than 2 recorded positions. Mousetrap provides a function for counting the number of recorded positions which can then be used to exclude the trials. An example co…
  • Great you found a solution. I think the problem was caused by updates in dplyr and the corresponding necessary changes we implemented in mousetrap.