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
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)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With