Learn R Programming

prepdat (version 1.0.8)

hybrid_recursive_mc: Hybrid-recursive Outlier Removal Procedure with Moving Criterion

Description

Hybrid-recursive outlier removal procedure with moving criterion according to Van Selst & Jolicoeur (1994).

Usage

hybrid_recursive_mc(exp_cell)

Arguments

exp_cell
Numeric vector on which the outlier removal method takes place. If experimental cell has 4 trials or less it will result in NA.

Value

A vector with the mean of exp_cell after removing outliers, percent of trials removed, and total number of trials in exp_cell before outlier removal.

References

Grange, J.A. (2015). trimr: An implementation of common response time trimming methods. R Package Version 1.0.0. https://cran.r-project.org/package=trimr

Van Selst, M., & Jolicoeur, P. (1994). A solution to the effect of sample size on outlier elimination. The quarterly journal of experimental psychology, 47(3), 631-650.