R.pb {asbio} | R Documentation |
The percentage bend correlation is a robust alternative to Pearson's product moment correlation.
R.pb(X, Y, beta = 0.2)
X |
A quantitative vector |
Y |
A second quatitative vector |
beta |
Bend criterion |
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).
A dataframe with the correlation, test statistic and p-value for the null hypothesis of independence are returned.
Ken Aho
Wilcox, R. R. (2005) Introduction to Robust Estimation and Hypothesis Testing, Second Edition. Elsevier, Burlington, MA.
x<-rnorm(100) y<-rnorm(100) R.pb(x,y)