Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Kendall's W with R?

Tags:

r

I would have liked to know how to compute the Kendall rank correlation coefficient with R and the Kendall's W, also known as Kendall's coefficient of concordance with R.

Thanks

like image 461
varin sacha Avatar asked Dec 05 '25 20:12

varin sacha


1 Answers

For the correlation, just add the method to the cor function:

cor(data, method = 'kendall')

For W there is the kendall function in the irr package. So,

install.packages("irr")
library(irr)
kendall(ratings, correct = TRUE)
like image 157
Peter Flom Avatar answered Dec 08 '25 11:12

Peter Flom