S.test: Compute the S statistic for the MK test

Description Usage Arguments Value Author(s) References

View source: R/S_test.R

Description

Compute the S statistic for the MK test

Usage

1
S.test(data, t.time)

Arguments

data

it is the vector of observations

t.time

it is a matrix with the year, month, date vector as individual variables in each column. The number of rows is the number of obsverations.

Value

a list containing S and n. S is the double sum on the sign of the difference between data pairs (Si) and n is the number of valid data in each year of the time series

Author(s)

Martine Collaud Coen, MeteoSwiss (CH) and alessandro.bigi@unimore.it, University of Modena and Reggio Emilia (IT)

References

Collaud Coen, M., Andrews, E., Bigi, A., Romanens, G., Martucci, G., and Vuilleumier, L.: Effects of the prewhitening method, the time granularity and the time segmentation on the Mann-Kendall trend detection and the associated Sen's slope, Atmos. Meas. Tech., https://doi.org/10.5194/amt-2020-178, 2020.


mannkendall/R documentation built on Feb. 2, 2022, 7:31 p.m.