Description Usage Arguments Value See Also Examples
Estimate regresson operators in a lagged linear model using spectral methods. Assume model
Y_t = ∑_{k=-q}^p A_k X_{t-k} + \varepsilon_t
where X_t is a stationary multivariate time series, (A_k)_{-q ≤q k ≤q p} is a filter and \varepsilon_t is white noise.
Function speclagreg
estimates parameters A_k with k \in lags
1 2 | speclagreg(X, Y, Kconst = 1, K = NULL, lags = 0:0, freq = NULL,
p = 10, q = 10, weights = "Bartlett")
|
X |
first process |
Y |
second process, if null then autocovariance of X is computed |
Kconst |
used for heuristic as in |
K |
dimension for inversion if no heuristic should be used |
lags |
which A_k should be estimated |
freq |
grid of frequencies for computation as in |
p |
window size for estimation of spectral density of X |
q |
window size for estimation of spectral density of Y and X |
weights |
as in |
timedom
operators
1 2 3 4 5 | X = rar(100)
Y = rar(100)
#estimate regressors in model $Y_t = \sum_{i\in Z} A_i X_{t-i}$
A = speclagreg(X,Y)
# check an advanced examples in demo(lagged.reg)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.