I just started using dynare. I wrote a fairly simple dynamic investment model (attached). I can get Dynare to compute a steady state, but when I try to simulate the model, I get the “Index exceeds matrix dimensions” error. This is puzzling to me, given that the steady state simulation works. Any suggestions? The full error is below.
Thanks for your help!
Index exceeds matrix dimensions.
Error in ==> sim1 at 42
nyf = nnz(lead_lag_incidence(3,:)) ;
Error in ==> simul at 82
Error in ==> steady_state at 91
Error in ==> dynare at 132
steady_state.mod (814 Bytes)