kendall-tau

an anonymous user · January 16, 2022
R
Fork
options(scipen = 100, digits = 22)
a = c(6,6,4,6,8,6,8,4,4,6,6,8,8,8,8,8,8,4,4,4,4,8,8,8,8,4,4,4,8,6,8,4)
b= c(160.0,160.0,108.0,258.0,360.0,225.0,360.0,146.7,140.8,167.6,167.6,
     275.8,275.8,275.8,472.0,460.0,440.0,78.7,75.7,71.1,120.1,318.0,304.0,
     350.0,400.0,79.0,120.3,95.1,351.0,145.0,301.0,121.0)

print(cor(a,b,method = "kendall"))
Output

Comments

Please sign up or log in to contribute to the discussion.