Historical Decomposition & Counterfactual Simulation

Questions and discussions on Vector Autoregressions

Historical Decomposition & Counterfactual Simulation

Postby TomDoan » Mon Apr 05, 2010 1:10 pm

The attached is a chapter out of the VAR workbook, describing historical decomposition in greater detail than in the RATS manual, and also showing how to generalize the analysis to other forms of counterfactual simulation.

Historical Decomposition chapter from VAR Workbook.pdf
(237.94 KiB) Downloaded 786 times


If you're interested in ordering the full workbook with examples, see

https://www.estima.com/shopcart/webordercart_courses.shtml
TomDoan
 
Posts: 2720
Joined: Wed Nov 01, 2006 5:36 pm

Re: Historical Decomposition & Counterfactual Simulation

Postby luching » Wed Jun 16, 2010 3:25 pm

Is there a sample code that does forecasts using the path option? I am trying to apply this to do counterfactuals on VAR's with sign restrictions. I think if I can map back and forth between structural and reduced form error terms, this should be straightforward using the PATH option in FORECAST. Please let me know.
luching
 
Posts: 31
Joined: Mon Jun 07, 2010 4:05 pm

Re: Historical Decomposition & Counterfactual Simulation

Postby TomDoan » Wed Jun 16, 2010 3:34 pm

One of the example programs in http://www.estima.com/procs_perl/700/uhligjme2005.zip is called Uhlig2 with history.prg. That's probably quite close to what you want. There's also a thread in the forum at http://www.estima.com/forum/viewtopic.php?f=4&t=307.
TomDoan
 
Posts: 2720
Joined: Wed Nov 01, 2006 5:36 pm

Re: Historical Decomposition & Counterfactual Simulation

Postby luching » Thu Jun 17, 2010 8:58 am

Hi Tom,

Mine is the basic setup where only one shock is identified. Despite this, say in a 4 variables VAR, there are other shocks, whether or not we identify them. My question is this:

The "base" forecasts are the dynamic forecasts with all shocks shut down. Does the "baseline" forecasts only add the "structural" shock IDENTIFIED. Or, does it add all shocks? I am interested in the former. The way I have in mind is to back out the structural error terms, set the one identified to zero during the period we want to run counterfactuals and then map it back to reduced form error terms. Then, use the FORECAST with PATH option.

I don't quite getting the mapping in the above codes. Also, is there a way to get the residuals after %modelsetcoeffs(varmodel,betadraw)? That is, get the residuals after each draw of the betas.I know I can do it brute force using %modelgetcoeffs and then applying the VAR equations. Thanks. Luching.
luching
 
Posts: 31
Joined: Mon Jun 07, 2010 4:05 pm

Re: Historical Decomposition & Counterfactual Simulation

Postby TomDoan » Thu Jun 17, 2010 2:52 pm

Yes. This does only the effect of the adding the one shock that you isolated.
TomDoan
 
Posts: 2720
Joined: Wed Nov 01, 2006 5:36 pm


Return to VARs (Vector Autoregression Models)

Who is online

Users browsing this forum: No registered users and 1 guest