Implausible trajectories from Qualtrics
Thanks in advance for any advice. I've recently collected some Mousetracking data using qualtrics (following this code https://osf.io/st2ef/). I've adapted their dataprep file in order to be able to import it as a mousetrap object
When I try and align (mt_data <- mt_align_start(mt_data)) my data it seems to put it upside down and I get this warning
In mt_reshape(data = data, use = use, use2 = use2, use2_variables = use2_variables, :
For some trials in data[[use2]], no corresponding trials in data[[use]] were found.
The thing is is that there are these really odd trajectories that are outside of the window (i.e. impossible to be real). This is not fixed by only keeping items with 2+ observations (> mt_example <- mt_subset(mt_example, nobs>2)) I am able to subset the data depending on xpos_max (mt_example <- mt_subset(mt_example, xpos_max<=1000, check="measures") and then align the data and this makes more sense
However there are still some implausible trajectories (i.e. >+1000/ <-1000 xpos) and mt_example <- mt_subset(mt_example, xpos_min>=0, check="measures") doesn't remove y trajectories with less than 0 and they don't all end where the left/right buttons were
When I try and remap my data symmetrically it throws this error:
mt_data <- mt_remap_symmetric(mt_data)
Error in if ((remap_xpos == "left" & trajectories[i, nlogs, xpos] > 0) | : argument is of length zero
When I subset my browser version or into individual participants sometimes I can remap symmetrically and some participants have ideal trajectories (i.e. all plausible; start and finish in same location and don't go outside possible window), some have the odd implausible trajectory and some are completely implausible (upside down and ending where ever on the screen not the designated end button).
I'm wondering if it is converting the X and Y co-ordinates from relative timestep increments to position on screen? Any advice would be greatly appreciated