mannkendall.stat: Mann-Kendall statistic.

Description Usage Arguments Details Value Author(s) References See Also


Calculates the Mann-Kendall statistic for monotonic trend. Unlike the function MannKendall, works for repeat values of time. Used in function mannkendall, which also calculates the p-value by simulation.





Vector of values which define the direction of the trend.


Vector of values for which you want to determine the trend.


The statistic is calculated by considering each case j and considering the subset of observations that have time greater than time[j]. The Mann Kendall statistic is the number of observations in this subset for which Y > Y[j] minus the number for which Y < Y[j]. The statistic is summed over all j. The p-value is calculated by nreps random permutations of the Y values.


Mann-Kendall statistic


Jon Barry:


Mann, H.B. (1945), Nonparametric tests against trend, Econometrica, 13, 245-259. Kendall, M.G. 1975. Rank Correlation Methods, 4th edition, Charles Griffin, London.

See Also

mannkendall, power.trend, MannKendall

Search within the emon package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.