Learn R Programming

asbio (version 0.2-1)

R.pb: Percentage bend correlation

Description

The percentage bend correlation is a robust alternative to Pearson's product moment correlation.

Usage

R.pb(X, Y, beta = 0.2)

Arguments

X
A quantitative vector
Y
A second quatitative vector
beta
Bend criterion

Value

  • A dataframe with the correlation, test statistic and p-value for the null hypothesis of independence are returned.

Details

The percentage bend correlation belongs to class of correlation measures which protect against marginal distribution (X and Y) outliers. In this way it is similar to Kendall's $\tau$, Spearman's $\rho$, and biweight midcovariance. A second class of robust correlation measures which take in to consideration the overall structure of the data (O estimators) are discussed by Wilcox (2005, pg. 389). A value for the bend cirterion beta is required in the R.pb function; beta = 0.2 is reccomended by Wilcox (2005).

References

Wilcox, R. R. (2005) Introduction to Robust Estimation and Hypothesis Testing, Second Edition. Elsevier, Burlington, MA.

See Also

corr, R.bw

Examples

Run this code
x<-rnorm(100)
y<-rnorm(100)
R.pb(x,y)

Run the code above in your browser using DataLab