tau | R Documentation |
Compute the Kendall's tau rank correlation coefficient index
tau(x, y)
x |
rank variable |
y |
rank variable. |
Kendall’s Tau is a non-parametric measure of relationships between columns of ranked data. The implemtation is based on Rey(2014),
a vector coantaning
The Tau statistic value
The tau's p value
The number of concordant pairs
The number of Discordant pairs
The number of extra x pairs. An extra x pair is a pair which sgn(x_i - x_j)=0
The number of extra y pairs. An extra y pair is a pair which sgn(y_i - y_j)=0
a<-c(12,2,1,12,2)
b<-c(1,4,7,1,0)
cor(a,b,method="kendall")
tau(a,b)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.