Description Usage Arguments Examples
Return the results of the Mann-Kendall test for trends. In case
of autocorrelation, the p-value of the test is obtained by
block bootstrap. This function is a wrapper for the function
MannKendall
.
If not specified by block
, an automatic selection of
the block sizes is provided according to the largest significant
autocorrelation lag.
1 2 |
x |
Sample. |
block |
Size of the bootstrap blocks.
If |
block.max |
Maximal size for for |
acf.tol |
Value added to the largest significant autocorrelation to determine the block size. |
... |
Other parameters pass to |
nsim |
Number of bootstrap sample. |
acf.alpha |
Determine the p-value of a significant autocorrelation. |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | set.seed(1)
## Case of independant data.
x <- rlnorm(100, 5, .1)
MKendall(x, block = 0)
## Case of autocorrelated data without trend.
x<- rep(0,100)
for(ii in seq_along(x)[-1])
x[ii] <- 0.5 * x[ii-1] + rnorm(1,0,sd=15)
MKendall(x, block = 2)
MKendall(x)
## Case with autocorrelation with trend
MKendall(x+seq_along(x)/3)
## Case of trend in peaks magnitude
pid <- which.floodPeaks(flow~date, canadaFlood$daily, u= 1000, r = 14)
MKendall(canadaFlood$daily$flow[pid])
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.