| taub | R Documentation |
taub() takes two vectors and returns Kendall's Tau-b as a measure of
rank correlation.
taub(x1, x2)
x1 |
a vector, and one assumes an integer |
x2 |
a vector, and one assumes an integer |
I'll be honest that I wrote this just to say that I did write this and that
my workflow would still lean on using the cor() function in base R.
taub() takes two vectors and returns Kendall's Tau-b as a measure of
rank correlation.
Kendall, Maurice G. 1938. "A New Measure of Rank Correlation". Biometrika 30(1/2): 81-93.
taub(usamex46$vote1, usamex46$vote2)
taub(gmyrus14$gmy, gmyrus14$rus)
# Compare with...
cor(usamex46$vote1, usamex46$vote2, method = 'kendall')
cor(gmyrus14$gmy, gmyrus14$rus, method = 'kendall')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.