This function creates a new vector called clean.val containing the RT without the extremes values. Values are defined as extreme when higer than a certain number of standard deviations from the mean of each subject individually Once the function finished running, simply attribute the clean.val vector to your data frame under the form: my_data$my_clean_RT_variable <- clean.val.
1 |
df.var.val |
Dataframe$column containing the RT |
df.var.group |
Dataframe$column containing the groupping variable for example the age groups. If your experiment does not include groups, set this argument to "none". Default is "none" |
n.sd |
Number of standard deviations above the mean where to cut |
data |
Name of the dataframe containing the data |
fill |
Value to replace the extreme values by. The default is NA |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.