View source: R/biweight_midcorrelation.R
biweight_midcorrelation | R Documentation |
This function computes the biweight midcorrelation between two numeric vectors. The biweight midcorrelation is a robust measure of correlation that is less sensitive to outliers than the traditional Pearson's correlation coefficient.
biweight_midcorrelation(x, y)
x |
A numeric vector. |
y |
A numeric vector of the same length as |
The biweight midcorrelation is calculated using the biweight midvariances and biweight midcovariance, as described by Wilcox (1994).
The biweight midcorrelation between x
and y
.
Christian L. Goueguel
Wilcox, R. R. (1994). The Biweight Midcorrelation: A Robust Correlation Technique for Two Samples. Journal of Statistical Computation and Simulation, 48(2):103-110.
set.seed(11230)
x <- rnorm(100)
y <- 2 * x + rnorm(100)
biweight_midcorrelation(x, y)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.