hd | R Documentation |
A function that calculates historical decomposition (HD) of the time series and the structural error.
hd(x, R=NULL, verbose=TRUE)
x |
an item fitted by |
R |
If |
verbose |
If set to |
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).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.