Description Usage Arguments Examples
This function vincentize da data frame
1 | vincentize(dataframe, rt, accuracy = NA, var, quantiles)
|
dataframe |
the data frame df containing data |
rt |
response time, ex: df$rt |
accuracy |
accuracy, 1 for correct trials, 0 for errors. Ex: df$accuracy |
var |
list variables within which vincentization will be performed |
quantiles |
vector of quantiles used for vincentization |
1 2 3 4 5 6 7 8 9 | vincentize(data,data$rt,data$acc,list(sujet=data$sujet, compatible=data$compatible),c(0.2,0.4,0.6,0.8))
compute the means for quantiles (0-0.2,0.2-0.4,0.4-0.6,0.6-0.8,0.8-1)
for the variables data$rt and data$acc
for each Sujet, in each modalities of compatible
return new variables:
q = quantile
nq = proportion of trials within quantile
rt_m = means of response time by quantile
accuracy_m = means of accuracy by quantile
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.