Deterministic Simulation Error

Dear all,

I have developed an OLG model to explain the relationship between mortality rate (exogenous) and economic growth (endogenous). I started with the deterministic version, so all the mortality rates are deterministic. After specifying the initval and endval, “steady” can successfully calculate the steady states and BK condition holds. However, the command “simul” does not work and returns an error “??? Attempted to access x(0,1); index must be a positive integer or logical.”

I checked the generated code by dynare, and I think there might be a problem with “it_”. Could anyone help me on obtaining the deterministic simulation of this dynamic model? Much appreciated.

My code is attached.

model.mod (2.67 KB)


Looks like a bug. We are looking into it and will get back to you.

This was a bug. It has been fixed in tomorrow’s unstable version.