Description Usage Arguments Details Value References Examples
This function computes the CUSUM statistic (and can compute weighted/trimmed
variants, depending on the values of kn
and tau
).
1 2 3 |
dat |
The data vector |
kn |
A function corresponding to the trimming parameter t_T in the trimmed CUSUM variant; by default, is a function returning 1 (for no trimming) |
tau |
The weighting parameter τ for the weighted CUSUM statistic; by default, is 0 (for no weighting) |
estimate |
Set to |
use_kernel_var |
Set to |
custom_var |
Can be a vector the same length as |
kernel |
If character, the identifier of the kernel function as used in
cointReg (see |
bandwidth |
If character, the identifier for how to compute the
bandwidth as defined in cointReg (see
|
get_all_vals |
If |
The definition of the statistic is
T^{-1/2} \max_{1 ≤q t ≤q T} \hat{σ}_{t,T}^{-1} ≤ft| ∑_{s = 1}^t X_s - \frac{t}{T}∑_{s = 1}^T \right|
A more general version is
T^{-1/2} \max_{t_T ≤q t ≤q T - t_T} \hat{σ}_{t,T}^{-1} ≤ft(\frac{t}{T} ≤ft(\frac{T - t}{T}\right)\right)^{τ} ≤ft| ∑_{s = 1}^t X_s - \frac{t}{T}∑_{s = 1}^T \right|
The parameter kn
corresponds to the trimming parameter t_T and
the parameter tau
corresponds to τ.
See \insertCitehorvathricemiller19CPAT for more details.
If both estimate
and get_all_vals
are FALSE
, the
value of the test statistic; otherwise, a list that contains the test
statistic and the other values requested (if both are TRUE
,
the test statistic is in the first position and the estimated change
point in the second)
1 2 3 | |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.