Page 1 of 1

SVAR frml

Posted: Mon Feb 18, 2019 5:18 pm
by BinhPham
Hi Tom,

Could you give me a hint for coding up the SVAR model (in the paper A New Keynesian SVAR model of the Australian economy, Shawn Chen-Yu Leu 2011) like

u_x(t) = e_x(t) - r_x'*A*Q*e(t) + a1*(e_i(t) - r_pi'*A*Q*e(t)
...equation (17,18,19) (picture attached).

where u_x(t) is epsilon_x(t) in the paper.

I understand that r_x'*A*Q*e(t) is just forecasted errors of the respective variable but do not know how to write frml to put cvmodel solving structural params.

Many thanks.

Re: SVAR frml

Posted: Mon Feb 18, 2019 7:34 pm
by TomDoan
Have you contacted Prof. Leu? Those look like RATS graphs.

Re: SVAR frml

Posted: Tue Feb 19, 2019 4:32 am
by BinhPham
Thank Tom, but I've just got this idea and can implement it.

Best,

Re: SVAR frml

Posted: Tue Feb 19, 2019 8:56 am
by BinhPham
Hi Tom,

Is it correct if the estimated params do not change over Kilian Bootstrap iterate?

I think we are shuffling the errors with replacement, hence, some params may change slightly! But all alpha, beta, gamma remain constants when I print out the values within the loop. Any advice?

Many thanks,

Re: SVAR frml

Posted: Tue Feb 19, 2019 12:01 pm
by TomDoan
No, that's not correct. A bootstrap changes the VAR coefficients, which changes the A matrix and changes the residuals and thus changes the SVAR coefficients. You probably aren't recalculating the residuals and/or A matrix.