Problem with Estimation

Dear all,

I’m using Dynare to estimate a DSGE model (An and Schorfheide (2007), Bayesian Analysis of DSGE Models). The following error message shows up:

??? Subscript indices must either be real positive integers or logicals.
Error in ==> set_prior at 135 =

Error in ==> dynare_estimation_1 at 83
[xparam1,estim_params_,bayestopt_,lb,ub,M_] = set_prior(estim_params_,M_,options_);

Error in ==> dynare_estimation at 62

Error in ==> Project at 136

Error in ==> dynare at 132
evalin(‘base’,fname) ;

Do you have any suggestions? Thanks a lot.
data_2.xls (29 KB)
Project.mod (2.02 KB)


I simulated the model and everything works fine. So the model code itself seems to be correct. I suppose there is something wrong with the data file or the estimation command. Any suggestion? Thanks.

The problem comes from the fact that you are trying to estimate kappa, r_A, pi_A, gamma_Q which are not parameters of the model, but what we call “model local variables”. All parameters estimated should be declared in the “parameters” statement. In the future, Dynare will display a more explicit message for your error.

Also note that in your XLS file, you should capitalize the column names, to match the variables in the MOD file.