ch.globalFilterByQuantile: A function to filter RT data based on the coefficient of...

ch.globalFilterByQuantileR Documentation

A function to filter RT data based on the coefficient of variation.

Description

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).

Usage

ch.globalFilterByQuantile(
  data,
  snCol,
  RTcol,
  CVlowQuantileThreshold = 0,
  CVhighQuantileThreshold = 1,
  statsOutputFile = NULL
)

Arguments

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)

Value

a dataframe of filtered data.

Examples

ch.globalFilterByQuantile (data=moralsData, "sn", "RT", CVlowQuantileThreshold = 0, CVhighQuantileThreshold = 0.95)

ccpluncw/ccpl_R_chMorals documentation built on Feb. 4, 2024, 3:30 p.m.