Skip to contents

Kendall's tau-b

Usage

morie_kendall_tau(x, y, exact = NULL)

Arguments

x

Numeric vector.

y

Numeric vector.

exact

Exact p-value? NULL (default): exact below 50 pairs without ties, as stats::cor.test().

Value

Named list: tau, p_value.

Examples

set.seed(1)
morie_kendall_tau(x = rnorm(50), y = rnorm(50))
#> $tau
#> [1] -0.0955102
#> 
#> $p_value
#> [1] 0.327734
#>