View source: R/crosscor_2series.R
crosscor_2series | R Documentation |
This function computes the cross-correlations between x(t) and y(t-l), for l=-lag,.., lag, and also the combination (Wald's type) of these statistics.
crosscor_2series(x, y, lag, graph = TRUE)
x |
Pseudo-observations (or residuals) of first series |
y |
Pseudo-observations (or residuals) of second series |
lag |
Maximum number of lags around 0 |
graph |
Set to TRUE for a correlogram for all possible lags. |
stat |
Cross-correlations for all lags |
LB |
Sum of squares of cross-correlations |
pvalue |
P-value of LB |
subsets |
c(-lag:lag) |
n |
length of the time series |
Duchesne, Ghoudi & Remillard (2012). On Testing for independence between the innovations of several time series. CJS, vol. 40, 447-479.
data(gas)
outr <-crosscor_2series(gas$xres,gas$yres,3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.