Correlation of Kendall two set. Compute exact p-value with ties.

kendall(data1, data2)

Arguments

data1

vector

data2

vector

Value

The correlation of data1, data2 vector with the statistical value and its probability

References

Numerical Recipes in C. Second Edition. Pag 634

See also

Examples

library(agricolae) x <-c(1,1,1,4,2,2,3,1,3,2,1,1,2,3,2,1,1,2,1,2) y <-c(1,1,2,3,4,4,2,1,2,3,1,1,3,4,2,1,1,3,1,2) kendall(x,y)
#> $stat #> [1] 3.355464 #> #> $tau #> [1] 0.6674238 #> #> $pvalue #> [1] 0.0007923184 #>