Learn R Programming

frequencyConnectedness (version 0.1.6)

spilloverRolling: Computing rolling spillover

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

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

Arguments

func

name of the function that returns FEVD for the estimtate est

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

no.corr

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

table

boolean whether the full spillover table should be returned

cluster

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

Value

A corresponding spillover value on a given freqeuncy band, ordering of bands corresponds to the ordering of original bounds.