Description Usage Arguments Value Examples
View source: R/method_analys.R
Calculation of nonlinear pre-whitened Theil-Sen´s slope using zyp.trend.vector. To remove lag-1 autocorrelation, the input series is pre-withened using the Zhang approach. Trend magnitude only is calculated when percentage of NAs in input vector does not exceed a pre-defined threshold.
1 | sens_slope(data_in, cover_thresh = 0.9)
|
data_in |
vector of input data |
cover_thresh |
Trend only calculated when percentage of NAs in input vector does not exceed cover_thresh (0-1) |
Nonlinear pre-withened Theil-Sen´s slope.
1 2 3 | data_slope <- c(2, 3, 5, 6 ,8, 5, 8, 12, NA, NA)
sens_slope(data_in, cover_thresh = 0.5)
sens_slope(data_in, cover_thresh = 0.9)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.