Learn R Programming

OjaNP (version 1.0-0)

ojaMedianFn: Value of the Oja Criterion

Description

The function returns the value of the Oja criterion function for a given point.

Usage

ojaMedianFn(X, x)

Arguments

X

a numeric data set or data matrix.

x

a numeric vector with the coordinates of interest.

Value

a numeric value containing the ciriterion evaluated at x for the data X.

References

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.

See Also

ojaMedian

Examples

Run this code
# 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