computing error bands for impulse responses of AB-type SVAR

Questions and discussions on Vector Autoregressions

computing error bands for impulse responses of AB-type SVAR

Unread postby rantueco » Tue Jun 02, 2020 6:56 pm

Hello sir,
I ran a SVAR of AB type with five variables. Everything went well but I could not get any idea about computing the error bands for the impulse responses. I modified the simszha.src codes to accommodate the AB model. But the impulse response function for the first variable lies outside the error bands. Is there any simple procedure to compute the error bands for AB type SVAR?
rantueco
 
Posts: 4
Joined: Tue Jun 02, 2020 5:18 pm

Re: computing error bands for impulse responses of AB-type S

Unread postby TomDoan » Tue Jun 02, 2020 9:35 pm

A models (as in the Sims-Zha example), B models and A-B models have different behaviors and respond to different types of samplers. If you could post your program and data set, we could take a look at it.
TomDoan
 
Posts: 7451
Joined: Wed Nov 01, 2006 5:36 pm

Re: computing error bands for impulse responses of AB-type S

Unread postby rantueco » Wed Jun 03, 2020 3:32 am

Many thanks for your quick response to my query.
As per your requirement, I have attached three files containing codes, data and changelog. In the "changelog" pdf file, the changed portion of the simszha.src is highlighted in yellow colour. In anticipation of your kind help!!
Attachments
Changelog.pdf
code
(90 KiB) Downloaded 949 times
sampledata.txt
data
(4.69 KiB) Downloaded 932 times
sample codes.RPF
changelog
(4.61 KiB) Downloaded 939 times
rantueco
 
Posts: 4
Joined: Tue Jun 02, 2020 5:18 pm

Re: computing error bands for impulse responses of AB-type S

Unread postby TomDoan » Wed Jun 03, 2020 8:04 am

Your model is very substantially overparameterized (that is, unidentified). With a five variable system, you can have at most ten free parameters if you are concentrating out the diagonal. You have 11 just in the A part alone. Aside from simple counting rules, your A model has far too little actual structure---your second, third and fourth equations are too similar and it will be difficult to separate them statistically.
TomDoan
 
Posts: 7451
Joined: Wed Nov 01, 2006 5:36 pm

Re: computing error bands for impulse responses of AB-type S

Unread postby rantueco » Wed Jun 03, 2020 9:47 am

Thank you for pointing out the over--parameterized nature of the model. By the way, this model is not the one I am working on. The model was for illustrative purpose only. I just wanted to know whether the codes (written for the model) are correct for computing error bands of AB type SVAR model.
rantueco
 
Posts: 4
Joined: Tue Jun 02, 2020 5:18 pm

Re: computing error bands for impulse responses of AB-type S

Unread postby TomDoan » Wed Jun 03, 2020 9:55 am

It might work; it might not. Some SVAR's are well-identified statistically and are easily handled by importance sampling or independence chain M-H. Some are not as well- behaved (the Sims six variable model being an example, with the money supply and money demand equations having problems) and are multi-modal, which is harder to handle.
TomDoan
 
Posts: 7451
Joined: Wed Nov 01, 2006 5:36 pm

Re: computing error bands for impulse responses of AB-type S

Unread postby rantueco » Wed Jun 03, 2020 10:18 am

Thanks for your quick response. I also constructed a model similar to Sims and Zha and applied the same codes as in simszha.src (without any modification except the data). Results were found to be quite confusing.
rantueco
 
Posts: 4
Joined: Tue Jun 02, 2020 5:18 pm

Re: computing error bands for impulse responses of AB-type S

Unread postby TomDoan » Wed Jun 03, 2020 11:06 am

The problem with the Sims six variable model is with the first two equations and in particular with the coefficients at the (1,2) and (2,1) positions. Both of those have bimodal distributions, as the model doesn't have strong enough evidence to determine which is actually money supply and which is money demand.

If you have an actual working model that is producing odd behavior you need to post *that*.
TomDoan
 
Posts: 7451
Joined: Wed Nov 01, 2006 5:36 pm

Re: computing error bands for impulse responses of AB-type S

Unread postby randal_verbrugge » Tue Apr 12, 2022 8:50 am

I can't speak to the technical questions here. I just want to report that I have two "A" models (so I removed "B" references), and the code seems to run very well. Thanks for posting it.
randal_verbrugge
 
Posts: 14
Joined: Mon Sep 23, 2013 10:43 am


Return to VARs (Vector Autoregression Models)

Who is online

Users browsing this forum: No registered users and 7 guests