Learn R Programming

frequencyConnectedness (version 0.1.6)

spilloverRollingDY12: Computing rolling spillover from the generalized fevd according to Diebold Yilmaz (2012)

Description

This function computes the rolling spillover using the standard VAR estimate. We implement the parallel version for faster processing. The window is of fixed window and is rolled over the data. Interpretation of the other parameters is the same as in the standard computation of spillover.

Usage

spilloverRollingDY12(data, p, type, window, n.ahead, table = F, no.corr,
  cluster = NULL)

Arguments

data

variable containing the dataset

p

lags in the VAR estimate.

type

which type of VAR to use, see help for VAR from vars package

window

length of the window to be rolled

n.ahead

how many periods ahead should the FEVD be computed, generally this number should be high enough so that it won't change with additional period

table

boolean whether the full spillover table should be returned

no.corr

boolean parameter whether the off-diagonal in the covariance matrix should be set to zero

cluster

either NULL for no parallel processing or the variable containing the cluster.