Performs the Mann-Kendall test for a trend in a time series, apparently going back to: Mann, H.B. (1945), Nonparametric tests against trend, Econometrica, 13, 245-259; and: Kendall, M.G. (1970), Rank Correlation Methods, 2nd ed., New York: Hafner. Parameters: - x: series to examine. It should be given in (probably log) level form. - verbosity: integer (optional) Can be set to zero to skip the printout, default 1 (print results). Returns a bundle with scalar elements and one string: - test: test statistic - pval: corresponding (two-sided) p-value - tau: the Kendall measure - sname: name of the input series (string) - S: (expert/internal) numerator of tau - s2: (expert/internal) variance of S Missing values at the beginning or the end (only) will be automatically discarded, otherwise they are not supported. Changelog: September 2020: 1.1, correct the version requirement June 2017: Version 1.0, initial release