Ramsey Policy Error

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.

Ramsey Policy Error

Postby lah89 » Sun May 04, 2014 10:54 am

Getting the following error
Code: Select all
Configuring Dynare ...
[mex] Generalized QZ.
[mex] Sylvester equation solution.
[mex] Kronecker products.
[mex] Sparse kronecker products.
[mex] Local state space iteration (second order).
[mex] Bytecode evaluation.
[mex] k-order perturbation solver.
[mex] k-order solution simulation.
[mex] Quasi Monte-Carlo sequence (Sobol).
[mex] Markov Switching SBVAR.

Starting Dynare (version 4.4.0).
Starting preprocessing of the model file ...
Ramsey Problem: added 14 Multipliers.
Found 14 equation(s).
Found 29 FOC equation(s) for Ramsey Problem.
Evaluating expressions...done
Computing static model derivatives:
 - order 1
Computing dynamic model derivatives:
 - order 1
 - order 2
Computing static model derivatives:
 - order 1

??? Error using ==> dynare at 156
DYNARE: preprocessing failed


any ideas whats going wrong ?
I dont only get that error but also Dynare crashes, stating "dynare_m.exe does not work anymore"
lah89
 
Posts: 31
Joined: Tue Jan 28, 2014 1:54 pm

Re: Ramsey Policy Error

Postby costa » Sun May 04, 2014 2:28 pm

Try to look at row 156, or share the code.
costa
 
Posts: 47
Joined: Thu Nov 14, 2013 8:09 pm

Re: Ramsey Policy Error

Postby jpfeifer » Tue May 06, 2014 7:21 pm

Also, use Dynare 4.4.2
------------
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: Ramsey Policy Error

Postby lah89 » Tue May 13, 2014 1:17 pm

lah89 wrote:I dont only get that error but also Dynare crashes, stating "dynare_m.exe does not work anymore"


jpfeifer wrote:This problem comes from you using model local variables (those defined with a #) in planner_objective. Future Dynare versions will yield an error. Try to get of those and it should run.


Now that you mention it...
Thank you very much !
lah89
 
Posts: 31
Joined: Tue Jan 28, 2014 1:54 pm

Re: Ramsey Policy Error

Postby lah89 » Thu May 22, 2014 1:29 pm

I dont wanna open a new topic for this questions althought it is not related to the error above (however it is related to Ramsey optimal policy):


Is there a way to constraint the instrument used for the optimal policy exercise to be positive?
I am trying to replicate a paper's IRFs (which works quite well for the basecase) but so far not for the optimal policy part.

One source for the differences might be that Dynare suggests a path for the instrument that involves negative values (althought this does not make sense from an economic point of view). How can I prevent that ? (or cant I since I am in a stochastic model and I cant use e.g. a max{}-operator due to local approximations ?)

Thanks!
lah89
 
Posts: 31
Joined: Tue Jan 28, 2014 1:54 pm

Re: Ramsey Policy Error

Postby jpfeifer » Thu May 22, 2014 2:32 pm

You could put the instrument in exp() in the model. Up to first order, it will be constrained to be positive that way.
------------
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: Ramsey Policy Error

Postby lah89 » Thu May 22, 2014 2:46 pm

jpfeifer wrote:You could put the instrument in exp() in the model. Up to first order, it will be constrained to be positive that way.


thanks! problem is that the instrument has steady state 0 in the base case by construction (and only becomes positive under an optimal policy)
hmm
lah89
 
Posts: 31
Joined: Tue Jan 28, 2014 1:54 pm

Re: Ramsey Policy Error

Postby lah89 » Fri May 23, 2014 8:25 am

any other ideas?


(btw:
-since I used exp() in my model in order to loglinearize, I enter the variables as well with exp() into the objective function, no?
-including an endogenous variable that is following an AR(1) which innovation is getting shocked into the planner's objective should not be an issue, should it?)
lah89
 
Posts: 31
Joined: Tue Jan 28, 2014 1:54 pm

Re: Ramsey Policy Error

Postby jpfeifer » Mon May 26, 2014 1:34 pm

- If the planner cares about absolute deviations instead of log-deviations/percentage deviations, then the planner objective must contain exp()
- That should not be an issue.

I must say that I find it strange to have a planner using an instrument that can always go in only one direction. What is the economic intuition?
------------
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


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 5 guests