genFEVD: Compute a forecast error vector decomposition in generalised...

Description Usage Arguments Value Author(s)

View source: R/fevd.R

Description

This function computes the standard forecast error vector decomposition given the estimate of the VAR. There are common complaints and requests whether the computation is ok and why it does not follow the original Pesaran Shin (1998) article. So let me clear two things out. First, the σ in the equation on page 20 refers to elements of Σ, not standard deviation. Second, the indexing is wrong, it should be σ_jj not σ_ii. Look, for example, to Diebold and Yilmaz (2012) or ECB WP by Dees, Holly, Pesaran, and Smith (2007) for the correct version.

Usage

1
genFEVD(est, n.ahead = 100, no.corr = F)

Arguments

est

the VAR estimate from the vars package

n.ahead

how many periods ahead should be taken into account

no.corr

boolean if the off-diagonal elements should be set to 0.

Value

a matrix that corresponds to contribution of ith variable to jth variance of forecast

Author(s)

Tomas Krehlik [email protected]


frequencyConnectedness documentation built on Jan. 4, 2018, 1:51 a.m.