Page 1 of 1

Estimation error: "Index exceeds matrix dimensions."

PostPosted: Wed Nov 06, 2013 4:11 am
by anitazhang
dear all,

Thank you for help in advance! I really appreciate it. When I use the estimation command, dynare gives the error: "Index exceeds matrix dimensions." I did found lots of posts for similar issues, but still could not found the problem of my codes.

My model is a quite simple one: a linear model with only four endogenous variables. can any one help take a look and let me know where goes wrong? I've attached the codes and the data. Thanks a lot!

Re: Estimation error: "Index exceeds matrix dimensions."

PostPosted: Wed Nov 06, 2013 8:25 pm
by jpfeifer
Seems to be a bug. We will look into it and keep you updated. Apart from that, your model is not linear (although you claim so with the linear statement) and only features contemporaneous variables, no leads or lags.

Re: Estimation error: "Index exceeds matrix dimensions."

PostPosted: Thu Nov 07, 2013 2:00 am
by anitazhang
thank you for your reply. yes, this model only features contemporaneous variables. but i don't understand why it is not linear. from what i can see, it is linear in the four endogenous variables (ibr rr bm m1) and the four exogenous variables (e_m e_l e_r e_s). looking forward to your reply. thanks a lot!


jpfeifer wrote:Seems to be a bug. We will look into it and keep you updated. Apart from that, your model is not linear (although you claim so with the linear statement) and only features contemporaneous variables, no leads or lags.

Re: Estimation error: "Index exceeds matrix dimensions."

PostPosted: Thu Nov 07, 2013 8:12 am
by MichelJuillard
Dynare is not meant for estimating static models. But, we should have a clearer error message.

Re: Estimation error: "Index exceeds matrix dimensions."

PostPosted: Thu Nov 07, 2013 6:13 pm
by anitazhang
Thank you for your comments. for clarification, do you imply that the estimation algorithm used by dynare is not able to estimate static models? or, there's just a stopping rule that makes dynare stop when it identifies the model is static? if the latter is true, is it possible let dynare just ignore that stopping rule and move on?


MichelJuillard wrote:Dynare is not meant for estimating static models. But, we should have a clearer error message.

Re: Estimation error: "Index exceeds matrix dimensions."

PostPosted: Fri Nov 08, 2013 6:23 am
by jpfeifer
It is not possible. Dynare computes decision rules where control variables are functions of predetermined states. But static models have no predetermined states, so Dynare crashes. We will take care of this issue in the future, but for now you cannot estimate static models. See https://github.com/DynareTeam/dynare/issues/526