Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我很想知道如何用 R 和 Kendall 的 W 计算肯德尔等级相关系数,也称为肯德尔与 R 的一致性系数。
谢谢
对于相关性,只需将 添加method到cor函数中:
method
cor
cor(data, method = 'kendall')
对于 W,包中有kendall函数irr。所以,
kendall
irr
install.packages("irr") library(irr) kendall(ratings, correct = TRUE)