mean3 | R Documentation |
Estimates the location based on third moments.
mean3(X, na.action = na.fail)
X |
numeric data matrix or dataframe with at least two columns. |
na.action |
a function which indicates what should happen when the data contain 'NA's. Default is to fail. |
This location estimate is defined for a n \times p
matrix X as
\frac{1}{p} ave_{i}\{[(x_{i}-\bar{x})S^{-1}(x_{i}-\bar{x})'] x_{i}\},
where \bar{x}
is the mean vector and S
the regular covariance matrix.
A vector.
Klaus Nordhausen
Oja, H., Sirki?, S. and Eriksson, J. (2006), Scatter matrices and independent component analysis, Austrian Journal of Statistics, 35, 175–189.
set.seed(654321)
cov.matrix <- matrix(c(3,2,1,2,4,-0.5,1,-0.5,2), ncol=3)
X <- rmvnorm(100, c(0,0,0), cov.matrix)
mean3(X)
rm(.Random.seed)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.