Two countries two sectors model, help required.

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 countries two sectors model, help required.

Postby brown3c » Sun Sep 11, 2011 10:53 am

Hi,

I tried to program a frictionless model with two countries and two sectors. The code should be fine (at least on paper), but I can't get it working. I usually receive the following error message:

The rank conditions ISN'T verified!

??? Error using ==> print_info at 39
Blanchard Kahn conditions are not satisfied: no stable equilibrium


I understand the meaning of the message, however, I can't find what's wrong with my code. The code is in the attached file. I would appreciate any kind of help. THanks!
Attachments
twocountry2sector.mod
(12.7 KiB) Downloaded 174 times
brown3c
 
Posts: 6
Joined: Sun Sep 11, 2011 10:48 am

Re: Two countries two sectors model, help required.

Postby ian_db » Mon Sep 12, 2011 12:41 am

I'd suggest trying to simplify the code as much as possible until you can find the issue. Note that variables that are predetermined, like capital, have to be lagged compared to how they're often written out in papers (i.e. y(t) is a function of k(t-1)). Your attached code is way too long for me to be willing to actually work through it. I could look at a drastically simplified version, though.
ian_db
 
Posts: 22
Joined: Mon Jan 18, 2010 4:15 pm

Re: Two countries two sectors model, help required.

Postby brown3c » Mon Sep 12, 2011 11:43 am

Ian, many thanks for the answer. The stock variables were already dated back one period. Attached are two versions of the simplified code. "twocountrytwosector" contains the rounded (approx) steady states. Also I attached a short PDF "paper" with the equations. If it helps: the sectors are symmetric and so are the countries which should reduce complexity.
Attachments
twocountrytwosectors.mod
(6.98 KiB) Downloaded 184 times
paper.pdf
(163.23 KiB) Downloaded 236 times
brown3c
 
Posts: 6
Joined: Sun Sep 11, 2011 10:48 am


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 6 guests

cron