Computes Kendalls Tau for a two-way table or matrix.

kendalls(x)

Arguments

x

A two-way table or matrix.

Details

Kendalls tau is a rank-correlation coefficient.

Value

numeric between -1 and +1.

Examples

M <- arsim(300,c(8,8),3) kendalls(M)
#> [1] 0.2461445
kendalls(optile(M))
#> [1] 0.8049634