long_run_covariance | R Documentation |
Estimate the long-run covariance kernel for functional data. That is, solve
C_{\epsilon}(t,t') = \sum_{l=-\inf}^{\inf} \text{Cov}(\epsilon_0(t),
\epsilon_l(t'))
with sequence (\epsilon_i : i \in \mathbb{Z})
defined as the centered
data (can center based on changes if given).
long_run_covariance(
X,
h = 2 * ncol(X)^(1/5),
K = bartlett_kernel,
changes = NULL
)
X |
A dfts object or data which can be automatically converted to that
format. See |
h |
The window parameter parameter for the estimation of the long run
covariance kernel. The default value is |
K |
Function indicating the kernel to use if |
changes |
Vector of numeric change point locations. Can be NULL. |
Symmetric data.frame of numerics with dim of ncol(data) x ncol(data).
result <- long_run_covariance(electricity, 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.