mann_kendall: Pre-withened Mann-Kendall trend test significance.

Description Usage Arguments Value Examples

View source: R/method_analys.R

Description

Assessment of trend significance using the Mann-Kendall trend test. Time series is prewithened using Zhang method zyp.trend.vector.

Usage

1
mann_kendall(data_in, cover_thresh = 0.9)

Arguments

data_in

vector of input data

cover_thresh

Significance only calculated when percentage of NAs in input vector does not exceed cover_thresh (0-1)

Value

Kendall's P-value computed on the final detrended time series.

Examples

1
2
3
data_mk <-  c(2, 3, 5, 6 ,8, 5, 8, 12, NA, NA)
mann_kendall(data_in, cover_thresh = 0.5)
mann_kendall(data_in, cover_thresh = 0.9)

ERottler/alptempr documentation built on May 7, 2021, 1:12 a.m.