ch.globalFilterByQuantile | R Documentation |
This function filters RT data based on the coefficient of variation. Specifically, it removes subjects based on their variability of RTs relative to the subjects in the dataset (by quantile).
ch.globalFilterByQuantile(
data,
snCol,
RTcol,
CVlowQuantileThreshold = 0,
CVhighQuantileThreshold = 1,
statsOutputFile = NULL
)
data |
A dataframe containing the choice RT data. (typically after running through ch.moralsDataPrep()). |
snCol |
a string that specifies the name of the column in "data" that contains the subject number. |
RTcol |
a string that specifies the name of the column in "data" that contains the RT for each trial. |
CVlowQuantileThreshold |
A number specifying the quantile that all subjects whose coefficient of variation falls below it will be removed from the dataset. DEFAULT = 0 (none removed) |
CVhighQuantileThreshold |
A number specifying the quantile that all subjects whose coefficient of variation falls above it will be removed from the dataset. DEFAULT = 1 (none removed) |
statsOutputFile |
the filename that you want the statistic summary output written to. DEFAULT = NULL (no file written) |
a dataframe of filtered data.
ch.globalFilterByQuantile (data=moralsData, "sn", "RT", CVlowQuantileThreshold = 0, CVhighQuantileThreshold = 0.95)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.