Learn R Programming

MNM (version 0.95-2)

mv.shape.est: Shape Matrices

Description

Shape matrix estimates using different score functions.

Usage

mv.shape.est(X, score = "identity", estimate = "outer", 
             location = NULL, na.action = na.fail, ...)

Arguments

X
a numeric data frame or matrix.
score
score to be used. Can be either "identity", "sign", "symmsign" or "rank".
estimate
can be "outer" or "inner".
location
If NULL the location vector is estimated. Alternatively a numeric p vector of location.
na.action
a function which indicates what should happen when the data contain 'NA's. Default is to fail.
...
further arguments passed to or from other methods.

Value

  • a matrix

Details

This functions returns different shape matrices depending on the score function chosen. For details see chapter 9 of the MNM book.

References

Oja, H. (2010), Multivariate Nonparametric Methods with R, Springer.

See Also

cov, tyler.shape, duembgen.shape, HR.Mest, spatial.shape

Examples

Run this code
data(iris)
IRIS <- iris[,1:4]
mv.shape.est(IRIS, "sign")
mv.shape.est(IRIS, "symmsign", "o")
mv.shape.est(IRIS, "rank")

Run the code above in your browser using DataLab