RDP 2007-07: More Potent Monetary Policy? Insights from a Threshold Model Appendix B: Computation of the Generalised Impulse Response Function

Appendix B: Computation of the Generalised Impulse Response Function

The method for computing generalised impulse response function follows Koop et al (1996). The GIRF is defined as follows:

The two components of the RHS are conditional expectations of X. The first term is conditional on the shock to the ith variable and the initial values (the history) of the variables in the model. The second term is conditional only on the history. The GIRF is calculated as follows:

  1. Pick a history Inline Equation, where r = 1,2,3. . .R. The history is the actual value of the lagged endogenous variables at a particular date r (there are as many histories as there are observations in the regime for which the impulse response is computed).
  2. Generate residuals (u) by taking bootstrap samples from the estimated residuals (ε) of the model.
  3. Using u, Inline Equation and the estimated model parameters A1 and A2, simulate the evolution of the threshold model X over k periods. This yields Xt+k(utt−1).
  4. To obtain the first term in the RHS, the previous step has to be modified by adding a shock (ξ) to the ith variable of the residual of the system. Again, simulate the evolution of the threshold model X over k periods. This gives Xt+k(ξt,utt−1).
  5. Repeat steps 2 to 4 B (= 1000) times to get B estimates of Xt+k(ut−1) and Xt+k(ξ,ut−1). The average over the difference of these estimates gives an estimate of the expectation X for a given history Inline Equation.
  6. Repeat steps 1 to 5 R times, that is, repeat the steps for all possible histories the impulse response has to be conditioned on (all the observations in each regime). For R histories this yields R estimates of Inline Equation and Inline Equation. Averaging these over all the histories, that is, Inline Equation and Inline Equation provides estimates of Inline Equation, that is, the generalised impulse response function for a given regime.