Kendall's tau at different lags or change point ranges
Arguments
- y
A numeric vector
- win
Numeric vector with 1 or 2 values. If
changepoint != NA
, Kendall's tau will be calculated in a window around the change point. If one value is provided a symmetric window, otherwisechangepoint - win[1]
andchangepoint + win[2]
. Ifchangepoint == NA
Kendall's tau will be calculated in a sliding window.- changepoint
If not
NA
, it has to be an index ofy
. Ifwin
isNA
Kendall's tau will be calculated in1:changepoint
, otherwise the values ofwin
will be used to create a window. If bothchangepoint
andwin
areNA
Kendall's tau will be calculated on all ofy
.- doPlot
provide a plot
Examples
ts_slope(y=rnorm(100), doPlot = TRUE)
#> Error in ts_slope(y = rnorm(100), doPlot = TRUE): object 'X' not found