Page 1 of 1

Deterministic Simulation Error

PostPosted: Fri Jul 05, 2013 2:36 pm
by joe19830227
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
demographic model
(2.67 KiB) Downloaded 69 times


Joe

Re: Deterministic Simulation Error

PostPosted: Fri Jul 05, 2013 3:13 pm
by jpfeifer
Looks like a bug. We are looking into it and will get back to you.

Re: Deterministic Simulation Error

PostPosted: Thu Jul 11, 2013 7:20 pm
by jpfeifer
This was a bug. It has been fixed in tomorrow's unstable version.