Rounding to zero too quickly

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.

Rounding to zero too quickly

Postby Glm » Tue Sep 04, 2012 8:07 am

Hi! I took the example file (basic RBC model) and added the variable "test=(k-k(-1))^4". When simulating, this term didn't show up and then I figured this "test" variable is too small and therefore it's not showing up. But here's the problem, even when I multiply this term with 1000000000000000000000000000000000000000 it's still not showing up. Sometimes in models I have this problem even when raising to 2 "test=(k-k(-1))^2". Since it's quite popular in the literature to use quadratic adjustment cost functions, for prices, capital e.t.c. this problem could mean that these terms are irrelevant. It seems like Dynare round this term to zero no matter what you do. Is this a bug in Dynare?
Glm
 
Posts: 47
Joined: Tue Jan 17, 2012 12:54 pm

Re: Rounding to zero too quickly

Postby jpfeifer » Tue Sep 04, 2012 4:18 pm

It's not a bug. You are approximating a parabola up to first order at its vertex (i.e. in steady state where k=k(-1)). At this point, the slope is 0. Hence, up to first order, there is no change in test. Regarding quadratic adjustment costs, the first order conditions contain linear terms which do not evaluate to 0.
------------
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: Rounding to zero too quickly

Postby Glm » Wed Sep 05, 2012 11:44 am

Yes you're right :). Thank you very much for your help!
Glm
 
Posts: 47
Joined: Tue Jan 17, 2012 12:54 pm


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 5 guests