rcov | R Documentation |
Computes a robust correlation matrix from x.
rcov(x)
x |
Matrix that you wish to find robust covariance of. Number of
variables is number of rows, number of observations is number
of columns. This is the opposite way round to the convention
expected by |
Method originates from Huber's "Robust Statistics" book.
Note that the columns of x
must be observations, this is the opposite
way around to the usual way for functions like var
.
The robust covariance matrix
Tim Downie
threshold.mwd
#
# A standard normal data matrix with 3 variables, 100 observations
#
v <- matrix(rnorm(100*3), nrow=3, ncol=100)
#
# Robust covariance
#
rcov(v)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.