Test for sphericity based on different score functions.
mv.shape.test(X, score = "identity", location = "est",
na.action = na.fail, ...)
A list with class 'htest' containing the following components:
the value of the test statistic.
the degrees of freedom for the test statistic or the number of replications in the simulation.
the p-value for the test.
a character string indicating what type of test was performed.
a character string giving the name of the data used.
a numeric data frame or matrix.
the score to be used. Possible are identity
, sign
, and symmsign
.
specifies if the location should be estimated or taken to be the origin. Possible choices are est
and origin
.
a function which indicates what should happen when the data contain 'NA's. Default is to fail.
arguments passed on to other functions.
Klaus Nordhausen
Note that here inner standardization is not logical. The rank score test is not implemented. Otherwise the tests are as described in chapter 9 of the MNM book.
To test for other "shapes" than sperical, transform the data accordingly and then test for spericity.
Oja, H. (2010), Multivariate Nonparametric Methods with R, Springer.
Nordhausen, K. and Oja, H. (2011), Multivariate L1 Methods: The Package MNM, Journal of Statistical Software, 43, 1-28.
sr.sphere.test
X <- rmvt(150,diag(1,3))
mv.shape.test(X)
mv.shape.test(X,"sym")
Run the code above in your browser using DataLab