hd {BGVAR}R Documentation

Historical Decomposition

Description

A function that calculates historical decomposition (HD) of the time series and the structural error.

Usage

hd(x, rotation.matrix=NULL, verbose=TRUE)

Arguments

x

an item fitted by irf.

rotation.matrix

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

verbose

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

Details

To save computational time as well as due to storage limits, both functions are based on the posterior median (as opposed to calculating HDs and the structural error for each draw of the MCMC chain). In case the shock has been identified via sign restrictions, a rotation matrix has to be selected to calculate both statistics. If not specified otherwise (via R), 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 the following objects

Author(s)

Maximilian Boeck, Martin Feldkircher, Florian Huber

References

Fry, R. and A. Pagan (2011) Sign restrictions in Structural Vector Autoregressions: A Critical Review. Journal of Economic Literature, Vol. 49(4), pp. 938-960.

See Also

bgvar and irf.

Examples



[Package BGVAR version 2.4.3 Index]