powered by
Compute $$Y_t = \sum_{k=-q}^p A_k X_{t-k}$$ where \(X_t\) is a stationary multivariate time series and \((A_k)_{-q \leq k \leq p}\) is a filter.
linproc(X, A, noise = NULL)
process process
time-domain operator series
function taking dimension D and returning D-dimentional vector
Multivariate linear process
speclagreg
# NOT RUN { d = 2 n = 100 X = rar(n,d=d) OP = array(0,c(d,d,2)) OP[,,1] = 2 * diag(d:1)/d OP[,,2] = 1.5 * diag(d:1)/d A = timedom(OP, 0:1) Y = linproc(X,A,noise=rnorm) # }
Run the code above in your browser using DataLab