- x
a vector containing a univariate time series. Missing values are not allowed.
- B
number of bootstrap simulations to obtain empirical critical values.
Default is 1000.
- test
trend test to implement: Student's t-test ("t", default),
Mann--Kendall test ("MK"), or
WAVK test ("WAVK", see WAVK).
- ar.method
method of estimating autoregression coefficients.
Default "HVK" delivers robust difference-based estimates by
Hall_VanKeilegom_2003;textualfuntimes. Alternatively,
options of ar function can be used, such as "burg",
"ols", "mle", and "yw".
- ar.order
order of the autoregressive model when ic = "none", or
the maximal order for IC-based filtering. Default is
round(10*log10(length(x))), where x is the time series.
- ic
information criterion used to select the order of autoregressive filter (AIC of BIC),
considering models of orders \(p=\) 0,1,...,ar.order.
If ic = "none", the AR(\(p\)) model with \(p=\) ar.order is used,
without order selection.
- factor.length
method to define the length of local windows (factors).
Used only if test = "WAVK". Default option "user.defined" allows
to set only one value of the argument Window. The option
"adaptive.selection" sets method = "boot" and employs
heuristic \(m\)-out-of-\(n\) subsampling algorithm
Bickel_Sakov_2008funtimes to select an optimal window from the set
of possible windows length(x)*q^j whose values are mapped to the largest
previous integer and greater than 2. Vector x is the time series tested.
- Window
length of the local window (factor), default is
round(0.1*length(x)). Used only if test = "WAVK".
This argument is ignored if
factor.length = "adaptive.selection".
- q
scalar from 0 to 1 to define the set of possible windows when
factor.length = "adaptive.selection".
Used only if test = "WAVK". Default is \(3/4\).
This argument is ignored if factor.length = "user.defined".
- j
numeric vector to define the set of possible windows when
factor.length = "adaptive.selection".
Used only if test = "WAVK". Default is c(8:11).
This argument is ignored if factor.length = "user.defined".