Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

fevd

Forecast Error Variance Decomposition


Description

This function calculates the forecast error variance decomposition (FEVDs) for Cholesky and sign-identified shocks.

Usage

fevd(x, rotation.matrix=NULL, var.slct=NULL, verbose=TRUE)

Arguments

x

an object of class bgvar.irf.

rotation.matrix

If NULL and the x has been fitted via sign restrictions, the rotation matrix is used that minimizes the distance to the median impulse responses at the posterior median.

var.slct

character vector that contains the variables for which forecast error variance decomposition should be performed. If NULL the FEVD is computed for the whole system, which is very time consuming.

verbose

If set to FALSE it suppresses printing messages to the console.

Details

Since the calculations are very time consuming, the FEVDs are based on the posterior median only (as opposed to calculating FEVDs for each MCMC sweep). In case the underlying shock has been identified via sign restrictions, the rotation matrix corresponds to the one that fulfills the sign restrictions at the posterior median of the estimated coefficients. More precisely, the algorithm searches for 50 rotation matrices that fulfill the sign restrictions at the posterior median of the coefficients and then singles out the rotation matrix that minimizes the distance to the median of the impulse responses as suggested in Fry and Pagan (2011).

Value

Returns a list with two elements

  • FEVD an array of size (K times horizon times N), where K are all variables in the system, horizon is the specified impulse response horizon and N is the size of the decomposed structural variables (if var.slct=NULL then K=N).

  • xglobal used data of the model.

Author(s)

Maximilian Boeck, Martin Feldkircher, Florian Huber

See Also

Examples


BGVAR

Bayesian Global Vector Autoregressions

v2.2.0
GPL-3
Authors
Maximilian Boeck [aut, cre] (<https://orcid.org/0000-0001-6024-8305>), Martin Feldkircher [aut] (<https://orcid.org/0000-0002-5511-9215>), Florian Huber [aut] (<https://orcid.org/0000-0002-2896-7921>)
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.