Page 1 of 1

Rounding to zero too quickly

PostPosted: Tue Sep 04, 2012 8:07 am
by Glm
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?

Re: Rounding to zero too quickly

PostPosted: Tue Sep 04, 2012 4:18 pm
by jpfeifer
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.

Re: Rounding to zero too quickly

PostPosted: Wed Sep 05, 2012 11:44 am
by Glm
Yes you're right :). Thank you very much for your help!