Solving the SOE model of Gali and Monacelli

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.

Solving the SOE model of Gali and Monacelli

Postby greg68 » Sun Feb 17, 2008 1:03 pm

Hi,

I am trying to solve Gali and Monacelli (2005)'s small open economy model using Dynare (see the attached .mod file). However, Dynare says that the Blanchard-Kahn conditions are not satisfied (6 eigenvalues larger than 1 in modulus for 7 forward-looking variables).

What worries me is that, the calibration and equations I use are identical to the ones given in Monacelli's own Gauss code (irnew3.prg) which is given on his website. I have run his code and it works fine. :roll: He uses the Anderson-Moore algorithm to solve the system.

http://www.igier.uni-bocconi.it/whos.ph ... id_doc=177

Could you please help me understand why the same equations work in the Gauss code but not in Dynare?

Could anybody share a working version of a Dynare code for a small open economy model similar to Gali and Monacelli?

Greg68
Attachments
gali_mon_monpol.mod
(1.5 KiB) Downloaded 1336 times
greg68
 
Posts: 2
Joined: Sat Feb 16, 2008 9:14 pm

-

Postby gozhan » Tue Apr 28, 2009 8:31 pm

-
Last edited by gozhan on Sat Feb 21, 2015 4:37 am, edited 2 times in total.
gozhan
 
Posts: 1
Joined: Tue Apr 28, 2009 8:21 pm

Re: Solving the SOE model of Gali and Monacelli

Postby JamieHall » Fri May 08, 2009 1:01 am

Hi guys,

I've attached a working version of the Gali Monacelli model. It reproduces the impulse responses in Figure 1 of the NBER Working Paper.

Not sure why Dynare has trouble with the UIP condition. I have a hunch: from equation (18) and Appendix 1 of the paper, we know that the exchange rate is pinned down uniquely; but Dynare can't read Appendix 1. So when you tell it "e(+1) - e = r - r_star", it thinks that "e" isn't determined. (But then why would Monacelli's AIM be able to solve it? --- and given that, why would Dynare's AIM fail...?)

In any case, as the authors explain, UIP is redundant if you have a risk-sharing equation. So I followed that route.

Hope that helps.....

Jamie
Attachments
gali_monacelli.mod
(3.72 KiB) Downloaded 2318 times
JamieHall
 
Posts: 20
Joined: Wed Feb 11, 2009 4:42 am

Re: Solving the SOE model of Gali and Monacelli

Postby jpfeifer » Fri Aug 21, 2015 6:05 pm

A replication file for the Gali/Monacelli (2005): Monetary Policy and Exchange Rate Volatility in a Small Open Economy", Review of Economic Studies 72, pp. 707-734 is available at https://github.com/JohannesPfeifer/DSGE_mod
------------
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: Google [Bot] and 8 guests