Comparing 2 identical models of which only one works, why?

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.

Comparing 2 identical models of which only one works, why?

Postby beanbag » Mon Mar 29, 2010 5:31 pm

I posted a topic a few days ago about not being able to introduce bonds to my model, a problem which is now resolved.
I succeeded in replicating the model in chapter 2 of gali's book on inflation and the business cycle.

I posted 2 models here that are basically identical, but only one of them works, the bottom one.
Why is that ?

the only thing I do is adding equations for the price and nominal wage logdeviations from steady state. The model is basically the same.

Has that something to do with the fact that they are nominal values ?



thanks for the insights!


ps: the models:
Code: Select all
alpha = 2/3;
phi = 2;
sigma = 3;
rho = 0.05;    // discount rate
theta = 1.5;   // taylor rule intensity


Code: Select all
model (linear);
i = rho + theta*infl;
a = 0.95 * a(-1) + e;
y = c;
y = a + (1-alpha)*n;
realwage = a - alpha*n;
realwage = sigma*c + phi*n;
c = c(+1) - 1/sigma * (i - infl(+1) - rho);

realwage = w - p;
infl = p - p(-1);
end;


Code: Select all
model (linear);
i = rho + theta*infl;
a = 0.95 * a(-1) + e;
y = c;
y = a + (1-alpha)*n;
realwage = a - alpha*n;
realwage = sigma*c + phi*n;
c = c(+1) - 1/sigma * (i - infl(+1) - rho);
end;
beanbag
 
Posts: 4
Joined: Mon Mar 22, 2010 11:09 pm

Re: Comparing 2 identical models of which only one works, why?

Postby p.gelain » Sun Apr 18, 2010 7:40 pm

What do you mean with "the model does not work"? Which kind of error do you get?

Paolo
p.gelain
 
Posts: 61
Joined: Wed Jul 11, 2007 9:13 pm
Location: Norges Bank


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 8 guests