Remove outliers from a vector based on Peirces criterion. Method follows the original technique in the paper by Gould below.
1  PeirceGould(v, m = 1)

v 

m 

Calculates R, the maximum allowable absolute error for a value in the vector, and removes those values exceeding this value.
m, the ‘number of unknown quantities’, may be treated as degrees of freedom of the system of observations, or the number of independent processes giving rise to errors.
For practical purposes m should generally be restricted to 1.
For efficiency, Peirce
is preferred.
A numeric vector, with outliers removed; ordered by value of absolute error.
1 2 
Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.
Please suggest features or report bugs with the GitHub issue tracker.
All documentation is copyright its authors; we didn't write any of that.