This function performs the Kendall test

kendall.test(matrix)

Arguments

matrix

Matrix of data

Value

A list with pvalues for alternative hypothesis, statistics, method and data name

Examples

x <- 1:10 m <- matrix(c(x, 2*x+rnorm(length(x))), ncol = 2) kendall.test(m)
#> [1] "Ranks computed" #> [,1] [,2] #> [1,] 1 1 #> [2,] 2 2 #> [3,] 3 3 #> [4,] 4 5 #> [5,] 5 4 #> [6,] 6 6 #> [7,] 7 7 #> [8,] 8 8 #> [9,] 9 9 #> [10,] 10 10
#> $data.name #> [1] "m" #> #> $statistic #> t C Q Z #> 0.9555556 44.0000000 1.0000000 3.8460369 #> #> $p.value #> Exact pvalue Positive Dependence pvalue #> 0.000000e+00 6.002184e-05 #> Negative Dependence pvalue No Dependence pvalue #> 9.999400e-01 1.200437e-04 #> #> $method #> [1] "Kendall" #>