simulation gives non-smooth transition

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.

simulation gives non-smooth transition

Postby rumecos » Thu Feb 17, 2011 3:47 pm

I use deterministic case, and simulation gives me non-smooth transition to a new steady state. In particular, variables jump in the first period, and then transit to the new steady state. I believe that this is because of some error term used by dynare. Because when my model was simple, by using own code (not dynare) I was getting similar jump as dynare, and after decreasing error term in value function iterations I was able to eliminate this jump, i.e. transition was smooth. But now my model is too complicated and It may take much longer to do it by myself.

Is there any way to change error term used in dynare?

Thanks in advance.
rumecos
 
Posts: 8
Joined: Thu Feb 17, 2011 3:36 pm

Re: simulation gives non-smooth transition

Postby SébastienVillemot » Tue Feb 22, 2011 12:36 pm

Please explain what you mean by "error term".

When solving for deterministic simulation, Dynare simply solves the full stacked non-linear system, as entered by the user.
Sébastien Villemot
Economist at OFCE – Sciences Po
SébastienVillemot
 
Posts: 706
Joined: Fri Dec 07, 2007 2:29 pm
Location: Paris, France

Re: simulation gives non-smooth transition

Postby rumecos » Tue Feb 22, 2011 9:03 pm

Dear Sébastien,
My .mod file is attached.



I was able to achieve smooth transition by decreasing tolerance level (for convergence) in value function iterations. Now I don't know what to do with dynare.
Thank you for your interest.
Last edited by rumecos on Wed Mar 02, 2011 3:57 pm, edited 1 time in total.
rumecos
 
Posts: 8
Joined: Thu Feb 17, 2011 3:36 pm

Re: simulation gives non-smooth transition

Postby SébastienVillemot » Wed Feb 23, 2011 9:21 am

You can try to lower the tolerance level of Dynare deterministic simulator by changing the value of "options_.dynatol". The default value is 0.00001.
Sébastien Villemot
Economist at OFCE – Sciences Po
SébastienVillemot
 
Posts: 706
Joined: Fri Dec 07, 2007 2:29 pm
Location: Paris, France

Re: simulation gives non-smooth transition

Postby rumecos » Wed Feb 23, 2011 2:23 pm

tried, but it does not improve the results, stil getting jump in the first period...
rumecos
 
Posts: 8
Joined: Thu Feb 17, 2011 3:36 pm

Re: simulation gives non-smooth transition

Postby jpfeifer » Wed Feb 23, 2011 3:11 pm

Hi,
could the reason be that there is no transition process for your exogenous variable F? If you look into oo_.exo_simul, F jumps from 0.1 in period 1 to 0.8 in period 2.
As
Code: Select all
Cm=Km^alpha*Lm^(1-alpha)+(1-i)*F;

, if F jumps, so does CM and so do all the other variables.
------------
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

Re: simulation gives non-smooth transition

Postby rumecos » Wed Feb 23, 2011 3:17 pm

Yes, F should jump in period 1 and remain high forever as this is a permanent shock. But endogenous variables have to make smooth transitions as they do after the first period.
rumecos
 
Posts: 8
Joined: Thu Feb 17, 2011 3:36 pm

Re: simulation gives non-smooth transition

Postby jpfeifer » Wed Feb 23, 2011 7:45 pm

But are you sure that your model features sufficient transmission mechanisms that must make the transition for all variables absolutely smooth? If you look at the equation for Cm you see the following: the only way for Cm to have a smooth transition without a jump in response to a jump in F is to have counteracting jumps in either Km or Lm or in both. Are you sure that this is the case so that it must be a computational issue?
------------
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

Re: simulation gives non-smooth transition

Postby rumecos » Wed Feb 23, 2011 8:16 pm

In equation for Cm I have variable "i" which gets zero value in the steady states and have counteracting jump during the transition. You can observe this after period one. I believe this makes transition of Cm smooth.
Also if you are right, then all my variables should jump to the new steady state at once as F. But what is happening, they jump in period one and then gradually converge to the new steady state.
rumecos
 
Posts: 8
Joined: Thu Feb 17, 2011 3:36 pm

Re: simulation gives non-smooth transition

Postby jpfeifer » Wed Feb 23, 2011 8:45 pm

You may be right. But my argument is somewhat different. In period 1, a shock to F suddenly hits the system. Of course, there are counteracting movements in other variables, for example in i. But they may be not strong enough to prevent a jump.
If my conjecture is correct, it is not necessarily the case that the sytem directly jumps to the new steady state. This is due to the endogenous dynamics, i.e. leads and lags. If the transmission of the shock is not extremely smooth (e.g. depending on the model: habits in consumption and leisure, investment adjustment costs, interest rate smoothing), there will be a one time jump in the first period due to the jump in F. The system jumps to the new saddlepath. But this is not the new steady state. Rather, the system then slowly transitions along the saddlepath to the new steady state.
------------
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

Re: simulation gives non-smooth transition

Postby rumecos » Thu Feb 24, 2011 1:04 pm

I could agree with you if my own code with value function iterations did not deliver smooth transition.
rumecos
 
Posts: 8
Joined: Thu Feb 17, 2011 3:36 pm


Return to Dynare help

Who is online

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