x=c(1.2,3,1.8,2,2,0.5,0.5,1,3,1)
y=c(1,1,1,1,1,0,0,0,0,0)
Kendalltaupb(x,y,alpha=.05)
# $cor
# [1] 0.3555556
# $ci
# [1] -0.04198026 0.55555556
# $cit
# [1] -0.1240567 0.5555556
# $test
# [1] 1.431084
# $sqse
# [1] 0.0617284
# $consistentvar
# [1] 0.04113925
# $siglevel
# [1] 0.1524063
Run the code above in your browser using DataLab