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)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.