Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

rcov

Computes robust estimate of covariance matrix


Description

Computes a robust correlation matrix from x.

Usage

rcov(x)

Arguments

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 var, for example

Details

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.

Value

The robust covariance matrix

Author(s)

Tim Downie

See Also

Examples

#
# A standard normal data matrix with 3 variables, 100 observations
#
v <- matrix(rnorm(100*3), nrow=3, ncol=100)
#
# Robust covariance
#
rcov(v)

wavethresh

Wavelets Statistics and Transforms

v4.6.8
GPL (>= 2)
Authors
Guy Nason [aut, cre]
Initial release
2016-10-18

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.