Description Usage Arguments References Examples
Time-normalizes the trajectories and computes a set of derivatives of the trajectories
1 | mt.preprocess(data, box.cor, i.id, i.measure, tsteps = 101)
|
data |
n x m - matrix with n measurements and m variables |
box.cor |
List containting the position of the center of the two response boxes and the starting position of the cursor |
i.id |
Vector of column names indicating the id-variables identifying unique trajectries |
i.measure |
Vector of column names indicating the columns for the measures of x, y, time and the selected box (left=0 or right=1) |
tsteps |
The number of time-steps the data is normalized to. Default = 101. |
Spivey, M. J., Grosjean, M., & Knoblich, G. (2005). Continuous attraction toward phonological competitors. Proceedings of the National Academy of Sciences of the United States of America, 102(29), 10393-10398.
1 2 3 4 5 6 7 8 9 10 11 | head(dataraw) #example dataset
box.cor <- list("start"=c(960,230), "left"=c(130,905), "right"=c(1830,905)) #coordinates from the example dataset
i.id <- c("trial")
i.measure <- c("x", "y","t", "b")
data.norm <- mt.preprocess(data=dataraw,
box.cor = box.cor,
i.id,
i.measure,
tsteps=101)
head(data.norm[,1:9])
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.