Can't process one of two identical equations

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.

Can't process one of two identical equations

Postby olena7 » Thu Oct 08, 2009 2:01 pm

Hello everyone,
I have been struggling with a very odd issue. I am working on adding sticky wages to my model, but Dynare seems to get stuck on one of the necessary equations and can't converge to a steady state with it.
Here's the part of the code that's causing the issue. (wh, whn, lh, and ch are logs of wages, new wages, labor and consumption, respectively. chi, phiW, theta and omegaW are parameters of the model.)

% exp(whn) = (whb/wha)^(1/(phiW*chi+1));
exp(wh) = exp(lh * chi - theta * ch);
whb = exp(wh * phiW*(1+chi) + lh * (1+chi)) + omegaW * betaH * whb(+1) * (inf(+1)+1)^(phiW*(1+chi));
wha = exp(-theta * ch + phiW * wh + lh) + omegaW * betaH * wha(+1) * (inf(+1)+1)^(phiW-1);
exp(wh * (1-phiW)) = (1 - omegaW) * exp(whn * (1-phiW)) + omegaW * exp(wh(-1) * (1-phiW)) * (inf+1)^(phiW-1);


If I set omegaW = 0, line 1 (commented out) should be identical to line 2, if we substitute lines 3-5 into it. However, Dynare won't run if I use line 1 and comment out line 2. I get the following error message:
SOLVE: maxit has been reached
??? Error using ==> steady_ at 77
STEADY: convergence problems


If I comment out line 1 and use line 2, everything works fine. In order to model sticky wages, I really need line 1, but I don't understand why the program isn't accepting it. Has anyone encountered this issue before?
Thank you!
olena7
 
Posts: 18
Joined: Wed Mar 25, 2009 8:28 pm

Re: Can't process one of two identical equations

Postby pakocica » Sat Dec 05, 2009 3:37 pm

Hi Olena,

I think I met a similar problem before. How do you specify your initial values? If you erase the parts which are zero when setting omegaW = 0, does anything change? Please, make sure once more that assuming omegaW = 0 and substituting equations 3-5 into eq. 2 result in eq. 1. If it does not help, can you send me you complete source code?

Best,
Pavel
pakocica
 
Posts: 46
Joined: Fri Nov 27, 2009 6:42 pm
Location: Taiwan (come from Prague)


Return to Dynare help

Who is online

Users browsing this forum: Google [Bot] and 15 guests