Multiple Shocks and Multiple Plots (2 Questions)

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.

Multiple Shocks and Multiple Plots (2 Questions)

Postby jgrav » Mon Oct 07, 2013 4:25 pm

I have two separate questions:

1. I want dynare to plot the IRF from two shocks hitting at the same time. How do I implement this? Let's say the two shock processes are a=rhoa*a(-1) + ea and b=rhob*b(-1)+eb and I want a 10% shock to a and a 20% shock to b. (I don't want plots of orthogonalized shocks, which seems to be what is usually plotted).

2. I have two models: a baseline one and an extended one (which naturally has more equations and some different parameter values). How do I make dynare plot both IRFs on the same set of axes? Should I put each model in a different .mod file? Then what?

Thank you.
jgrav
 
Posts: 9
Joined: Wed Oct 02, 2013 12:17 am

Re: Multiple Shocks and Multiple Plots (2 Questions)

Postby jpfeifer » Mon Oct 07, 2013 6:33 pm

1. See http://www.dynare.org/phpBB3/viewtopic.php?f=1&t=3558 and the links therein
2. Run the two mod-files. Save the results separately and then draw the pictures yourself using the plot-command of Matlab and the IRFs stored in the oo_-structure.
------------
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

Re: Multiple Shocks and Multiple Plots (2 Questions)

Postby jgrav » Mon Oct 07, 2013 8:57 pm

1. So let's say the two processes are as I originally described and I want the percent shocks described (10 and 20). Do I instead define a new (exogenous) variable ec such that a=rhoa*a(-1)+ec and b=rhob*b(-1)+2ec and tell dynare to shock ec by (.1)^2?
2. Could you explain to me how to implement this?

Thank you?
jgrav
 
Posts: 9
Joined: Wed Oct 02, 2013 12:17 am

Re: Multiple Shocks and Multiple Plots (2 Questions)

Postby jpfeifer » Tue Oct 08, 2013 7:57 am

1. Yes. This should work.
2. Search the forum. See e.g. http://www.dynare.org/phpBB3/viewtopic.php?f=1&t=2780
------------
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 6 guests