The function returns the value of the Oja criterion function for a given point.
ojaMedianFn(X, x)
a numeric data set or data matrix.
a numeric vector with the coordinates of interest.
a numeric value containing the ciriterion evaluated at x
for the data X
.
Oja, H. (1983), Descriptive statistics for multivariate distributions, Statistics and Probability Letters, 1, 327--332.
Ronkainen, T., Oja, H. and Orponen, P. (2002), Computation of the multivariate Oja median, in Dutter R., Filzmoser P.,Gather U. and Rousseeuw, P. J.: Developments in Robust Statistics, Heidelberg: Springer, 344--359.
# NOT RUN {
data(biochem)
X <- as.matrix(biochem[,1:2])
x <- ojaMedian(X)
ojaMedianFn(X, x)
ojaMedianFn(X, c(1.1, 0.4))
# }
Run the code above in your browser using DataLab