Two big open economy model

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.

Two big open economy model

Postby jamo123 » Thu Jan 12, 2017 11:11 pm

Dear forum,


I am trying to replicate the results from Nikhil Patel (2016, BIS) - International trade finance and the cost channel of monetary policy in open economies
which can be found here: http://www.bis.org/publ/work539.pdf.

I have drawn some inspiration from Benedikt Kolbs code on Justiniano and Preston (2010) and managed so far to include Patels import-export sector in this code, but that is more of a fix than an elegant model. Plus, in that case I have a big and a small economy whereas the idea is to model to equally-sized big open economies (not in a monetary union, with independent monetary policy regimes). If there is demand I can upload that code later, too.


However, the code attached is what I wrote for Patels model with two big open economies. It seems to have the right equations for all the relevant variables (only a definition, Trade/GDP, needs to be added but this shouldn't pose a problem) but unfortunately the Blanchard-Kahn-conditions are not satisfied and I hope that maybe someone else is able to detect where exactly the rub is.
I have been struggling a good time now without finding the solution, so I would be very grateful...! :lol:


Thank you all.


EDIT: All equations are log-linearized.
In the mod-file are two different sets of parameterization (second one at the end) - the problems described emerge under the second set, under the first set I get the message that most equations' resiudals are NaN, the others zero - so that seems even worse..
Attachments
Patel2016.mod
(11.31 KiB) Downloaded 107 times
jamo123
 
Posts: 3
Joined: Fri Jan 06, 2017 6:22 pm

Re: Two big open economy model

Postby jpfeifer » Tue Jan 17, 2017 10:59 am

You need to check the correctness and timing of all equations. From my experience, this is like searching for a needle in a haystack. Usually, the only way out is to simplify as far as possible to get a working version of the model and then start adding features back in. Starting with a big model as you do almost never works.
------------
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 5 guests