Learn R Programming

groc (version 1.0.10)

covrob: Robust covariance measure

Description

Compute robust estimates of the covariance between two variables using the robust tau estimate of univariate scale, as proposed by Maronna and Zamar (2002).

Usage

covrob(t, u)

Value

Value of the robust covariance.

Arguments

t

a numeric vector containing the data for the fisrt variable.

u

a numeric vector containing the data for the second variable.

Author

Martin Bilodeau (bilodeau@dms.umontreal.ca) and Pierre Lafaye de Micheaux (lafaye@unsw.edu.au)

Details

This function uses the scaleTau2 function from the robustbase package.

References

Maronna, R.A. and Zamar, R.H. (2002) Robust estimates of location and dispersion of high-dimensional datasets; Technometrics 44(4), 307--317.

See Also

corrob, dcov

Examples

Run this code
data(stackloss)
covrob(stackloss$Air.Flow,stackloss$Water.Temp)

Run the code above in your browser using DataLab