Question about 'mt_time_normalize' function in mousetrap R package
I am a psychology student and I am trying to use mousetrap to analysis some mouse tracking data. Our task is asking the participants to rate their emotion on a x-y coordinate. When I am trying to use mt_time_normalize function to do the temporal normalization, sometimes I will get the error :
Error in stats::approx(trajectories[i, , timestamps], trajectories[i, : need at least two non-NA values to interpolate
I searched about this, and it seems that it's caused by the tied x when y is different (so the code doesn't know how to interpolate between these two points). I speculate that if we add [tied = ordered] in the code for mt_time_normalize this problem may be solved, but I am not sure whether this is the right way to do this.
Hope to get your comments on this issue!