Efficient implementation of the Mann-Kendall test for correlation using Knight's algorithm of (O(n log n) complexity).
Usage
TH_MK_Corr(x, y, alternative = c("two.sided", "greater", "less"))
Arguments
- `x`
a
numerical vector
.- `alternative`
Type of alternative hypothesis ("two.sided", "greater", "less")
Value
A htest
object with results
- statistic
Mann-Kendall tau statistic
- p.value
p-value
- alt
Alternative Hypotesis
Author
Vladimiro Andrea Boselli, (2025) boselli.v@irea.cnr.it