smk.test {trend} | R Documentation |
Seasonal Mann-Kendall Trend Test
Description
Performs a Seasonal Mann-Kendall Trend Test (Hirsch-Slack Test)
Usage
smk.test(x, alternative = c("two.sided", "greater", "less"), continuity = TRUE)
Arguments
x |
a time series object with class |
alternative |
the alternative hypothesis, defaults to |
continuity |
logical, indicates, whether a continuity correction
should be done; defaults to |
Details
The Mann-Kendall statistic for the $g$-th season is calculated as:
with the signum function (see
sign
).
The mean of is
. The variance including the
correction term for ties is
The seasonal Mann-Kendall statistic for the entire series is calculated according to
The statistic is approximately normally distributed, with
If continuity = TRUE
then a continuity correction will be employed:
Value
An object with class "htest" and "smktest"
data.name |
character string that denotes the input data |
p.value |
the p-value for the entire series |
statistic |
the z quantile of the standard normal distribution for the entire series |
null.value |
the null hypothesis |
estimates |
the estimates S and varS for the entire series |
alternative |
the alternative hypothesis |
method |
character string that denotes the test |
Sg |
numeric vector that contains S scores for each season |
varSg |
numeric vector that contains varS for each season |
pvalg |
numeric vector that contains p-values for each season |
Zg |
numeric vector that contains z-quantiles for each season |
References
Hipel, K.W. and McLeod, A.I. (1994), Time Series Modelling of Water Resources and Environmental Systems. New York: Elsevier Science.
Libiseller, C. and Grimvall, A. (2002), Performance of partial Mann-Kendall tests for trend detection in the presence of covariates. Environmetrics 13, 71–84, doi:10.1002/env.507.
R. Hirsch, J. Slack, R. Smith (1982), Techniques of Trend Analysis for Monthly Water Quality Data, Water Resources Research 18, 107–121.
Examples
res <- smk.test(nottem)
## print method
res
## summary method
summary(res)