Problem on solving the Steady State

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.

Problem on solving the Steady State

Postby SnowderHeld » Mon Jan 11, 2010 10:04 am

Hello,

i'm trying to solve a basic newkeynesian model, agumented with a technology shock and a news shock.
With the steady-state, i always run into convergence problems, and the solve-function tells me: " maxit has been reached".
I added the model so you can have a look. I'm open to every question and would love if someone could give me a hint to solve this.
Nearly forgot it, i use Dynare3 on Matlab. Maybe this could be a Problem too.

Thanks to anyone who helps me.
Best regards.
Attachments
modell1.mod
(1.11 KiB) Downloaded 137 times
SnowderHeld
 
Posts: 5
Joined: Mon Jan 11, 2010 9:45 am

Re: Problem on solving the Steady State

Postby jonathanb » Mon Jan 11, 2010 12:35 pm

Maybe because there are 10 equations but 11 endogenous variables ???

You have a first problem with your code is that you use the variable "Tech" in var declaration and you don't use it after.
This is the first problem, but is doesn't solve your issue

I work on
jonathanb
 
Posts: 54
Joined: Wed Sep 17, 2008 8:52 pm
Location: New York

Re: Problem on solving the Steady State

Postby SnowderHeld » Mon Jan 11, 2010 2:55 pm

Tech, that was another try to get a solution with another concept. Please ignore /delete it (i think there shouldn't be a Problem with a declared Var i don't use).

So endogeneous variables and equations should be the same.
If there are problems with understanding the model, please ask.
SnowderHeld
 
Posts: 5
Joined: Mon Jan 11, 2010 9:45 am

Re: Problem on solving the Steady State

Postby AssiaEzzeroug » Mon Jan 11, 2010 3:00 pm

Hi,

first the variable "Tech" you declared in the "var" statement doesn't appear in the block model indeed. When I remove it (and also from the block initval) I deal with convergence issues. I suggest you to change some initial values since the steady-state of the following equations: 2, 4, 10, are not satisfied. You can see it by adding the instruction "resid(1);" just before "steady;"

Hope this helps.

Best
AssiaEzzeroug
 
Posts: 83
Joined: Tue Nov 24, 2009 3:48 pm

Re: Problem on solving the Steady State

Postby SnowderHeld » Mon Jan 11, 2010 8:13 pm

Thanks for the nice support so far.

I updated the model, so that there are no more complains about the missleading "Tech"-variable. The steady state condition seemed plausible to me (y=yn; Output= natural Output which should be true in steady state) , for now i guessed a steady state value, think i have to write it down and solve it by hand if that still appears to be the problem.

But the convergence problemes, in my opinion come from the 2nd equation, the technology-process.
Just to give a intuition how the process should work:
ln A = A(-1) + g(-1) + e

So A denotes the technologyparameter, g the newsshockprocess and e the inovation to technology, so the technologyshock. While lower case letter denote logs.
Could it maybe come from the propertie of the newsshock that it should (if it would work) raise the steady state value of technology.


EDIT: I think i got found a way to solve the cenvergence problem: simply by taking first differences, so that the random walk becomes stationary. But i didn't implemented it jet. I will report if that aproach work.
Attachments
modell1.mod
(1.11 KiB) Downloaded 141 times
SnowderHeld
 
Posts: 5
Joined: Mon Jan 11, 2010 9:45 am

Re: Problem on solving the Steady State

Postby SnowderHeld » Fri Jan 15, 2010 2:42 pm

I give up, i've got no clue how to get stationarity in this process.

Is there a way to let the random term stay in the equation. Or do i have to get it out?
SnowderHeld
 
Posts: 5
Joined: Mon Jan 11, 2010 9:45 am

Re: Problem on solving the Steady State

Postby gbel » Fri Jan 15, 2010 3:44 pm

I can't figure for the life of me the intuition behind "a= exp(a(-1))+ g(-1)+e;" What is the exponential doing on one side and not the other.

Also, if you meant "a= a(-1)+ g(-1)+e;", then you would have to write it as "a= 0.999999*a(-1))+ g(-1)+e;" to make it stationary.

Hope this helps,
Gilles
gbel
 
Posts: 33
Joined: Thu Sep 04, 2008 8:34 pm
Location: Québec

Re: Problem on solving the Steady State

Postby gbel » Fri Jan 15, 2010 4:17 pm

Sorry, I just realized: "a= 0.999999*a(-1)) +e;" only make sense. To add "g(-1)", you have to stationarize the whole model. "a", "y", "yn", "ytilde", "i", "mg" and "pi" would appear has stationary versions of themselves.

You can't hope to find stationarity in a non-stationary model, but stationarising a model is not that hard and it's the standard practice.
gbel
 
Posts: 33
Joined: Thu Sep 04, 2008 8:34 pm
Location: Québec

Re: Problem on solving the Steady State

Postby SnowderHeld » Fri Jan 15, 2010 4:45 pm

Why that ln term is on one side but not on the other i can't figure out well. I got that from a working paper on newsshocks but i will ask the autor, if that is just a writing error. In the case the process is log first difference then it makes no sence then it should be a= a(-1)+... .

The persistence parameter of the technologyprocess can't be the solution (thought about that myself). that wuld change the behavior of technology itselfe.

I think you are right, i have to stationarising the model.
SnowderHeld
 
Posts: 5
Joined: Mon Jan 11, 2010 9:45 am


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 8 guests