qn {pcaPP} | R Documentation |
Returns a scale estimation as calculated by the (robust) Qn estimator.
qn(x)
x |
a vector of data |
The Qn estimator computes the first quartile of the pairwise absolute differences of all data values.
The estimated scale of the data.
Heinrich Fritz, Peter Filzmoser <P.Filzmoser@tuwien.ac.at>
P.J. Rousseeuw, C. Croux (1993) Alternatives to the Median Absolute Deviation, JASA, 88, 1273-1283.
# data with outliers x <- c(rnorm(100), rnorm(10, 10)) qn(x)