Estimation error: "Index exceeds matrix dimensions."

This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location where you will have to reset your password.
Forum rules
This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location (https://forum.dynare.org) where you will have to reset your password.

Estimation error: "Index exceeds matrix dimensions."

Postby anitazhang » Wed Nov 06, 2013 4:11 am

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!
Attachments
Data3.m
(5.92 KiB) Downloaded 64 times
bs.mod
(1.09 KiB) Downloaded 71 times
anitazhang
 
Posts: 35
Joined: Sat Oct 05, 2013 12:02 am

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

Postby jpfeifer » Wed Nov 06, 2013 8:25 pm

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.
------------
Johannes Pfeifer
University of Cologne
https://sites.google.com/site/pfeiferecon/
jpfeifer
 
Posts: 6940
Joined: Sun Feb 21, 2010 4:02 pm
Location: Cologne, Germany

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

Postby anitazhang » Thu Nov 07, 2013 2:00 am

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.
anitazhang
 
Posts: 35
Joined: Sat Oct 05, 2013 12:02 am

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

Postby MichelJuillard » Thu Nov 07, 2013 8:12 am

Dynare is not meant for estimating static models. But, we should have a clearer error message.
MichelJuillard
 
Posts: 680
Joined: Thu Nov 18, 2004 10:51 am

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

Postby anitazhang » Thu Nov 07, 2013 6:13 pm

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.
anitazhang
 
Posts: 35
Joined: Sat Oct 05, 2013 12:02 am

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

Postby jpfeifer » Fri Nov 08, 2013 6:23 am

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
------------
Johannes Pfeifer
University of Cologne
https://sites.google.com/site/pfeiferecon/
jpfeifer
 
Posts: 6940
Joined: Sun Feb 21, 2010 4:02 pm
Location: Cologne, Germany


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 8 guests