Description Usage Arguments Value Examples
For a given multivariate stationary time series estimates a covarianve matrix C_{XY}^k = Cov(X_k,Y_0) using the formula
\hat C_{XY}^k = \frac{1}{n} ∑_{i=1}^{n-k} X_{k+i} Y_k'.
1 | lagged.cov(X, Y = NULL, lag = 0)
|
X |
first process |
Y |
second process, if null then autocovariance of X is computed |
lag |
the lag that we are interested in |
Covariance matrix
1 2 3 | X = rar(100)
Y = rar(100)
lagged.cov(X,Y)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.