plotting IRFs from different models in the same figure

This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location where you will have to reset your password.
Forum rules
This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location (https://forum.dynare.org) where you will have to reset your password.

plotting IRFs from different models in the same figure

Postby beeimp » Thu Sep 08, 2011 1:06 am

Hi, all.

I got the IRFs after running the dynare for two different models but I would like to compare the impulse responses of the same variable under the same shock from two different model in the same figure . Not simply putting the IRFs together.

If anyone have done this before, please help me. Many thanks.
beeimp
 
Posts: 4
Joined: Wed Sep 01, 2010 7:12 am

Re: plotting IRFs from different models in the same figure

Postby kyri82 » Fri Sep 09, 2011 2:13 pm

You can save the impulse response functions (IRFs) as a matlab file. For example, add the following commands after the command stoch_simul:

matrixname = oo_.irfs
save filename.m matrixname

Then, IRFs are accessible in the following way: IRF of variable x to shock e:
filename.x_e
Check also dynare manual, page 32.

You can then use "plot commands" to plot what you want.

hope that helps!

Kyriacos
kyri82
 
Posts: 141
Joined: Thu Feb 10, 2011 6:14 pm
Location: Toulouse - France

Re: plotting IRFs from different models in the same figure

Postby jpfeifer » Sat Jan 17, 2015 1:31 pm

------------
Johannes Pfeifer
University of Cologne
https://sites.google.com/site/pfeiferecon/
jpfeifer
 
Posts: 6940
Joined: Sun Feb 21, 2010 4:02 pm
Location: Cologne, Germany


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 7 guests