Remove outliers from a vector based on Peirces criterion. Method follows the original technique in the paper by Gould below.
PeirceGould(v, m = 1)
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.
Peirce is preferred.
A numeric vector, with outliers removed; ordered by value of absolute error.