MJDGGES error code 23 and Euler equation bug
Posted: Wed Jan 13, 2010 11:27 am
When running deterministic simulations in the mod file posted below I have noticed that I get MJDGGES error code 23 when the Euler equation contains variables raised to the power zero, if the power is a function of model parameters. If I manually replace the parameter names with their numerical values values the code works fine.
An example may clarify what I am trying to say here. If I have (1-l)^(1-phi) where phi = 1, then I get the error code. If I write (1-l)^(1-1) the code works fine.
In the attached mod file lines 98 to 103 contain equivalent Euler equations where some work and some don't. Comments in the code indicate which give the error code. I am using Dynare 4.1.0, although I think I ran across the same problem a couple of weeks ago with an older Dynare 4.
Thanks for your help.
An example may clarify what I am trying to say here. If I have (1-l)^(1-phi) where phi = 1, then I get the error code. If I write (1-l)^(1-1) the code works fine.
In the attached mod file lines 98 to 103 contain equivalent Euler equations where some work and some don't. Comments in the code indicate which give the error code. I am using Dynare 4.1.0, although I think I ran across the same problem a couple of weeks ago with an older Dynare 4.
Thanks for your help.