Description Usage Arguments Value Author(s) References See Also Examples
The function returns the value of the Oja criterion function for a given point.
1 | ojaMedianFn(X, x)
|
X |
a numeric data set or data matrix. |
x |
a numeric vector with the coordinates of interest. |
a numeric value containing the ciriterion evaluated at x
for the data X
.
ported to R by Daniel Fischer. Original C++ code by Tommi Ronkainen.
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.
1 2 3 4 5 | data(biochem)
X <- as.matrix(biochem[,1:2])
x <- ojaMedian(X)
ojaMedianFn(X, x)
ojaMedianFn(X, c(1.1, 0.4))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.