Page 1 of 1

??? Subscripted assignment dimension mismatch.

PostPosted: Tue Sep 14, 2010 4:42 pm
by vad0
Hello. I'm trying to run the very first model from the user guide. I changed some values. Now dynare can not finish the simulation. It shows the following error:

??? Subscripted assignment dimension mismatch.

Error in ==> disp_th_moments at 99
z(:,i) = diag(oo_.gamma_y{i+1}(i1,i1));

Error in ==> stoch_simul at 69
disp_th_moments(oo_.dr,var_list);

Error in ==> modelToSolve_invoker at 132
info = stoch_simul(var_list_);

Error in ==> dynare at 102
evalin('base',fname) ;

Please, help me find out what is wrong.

Re: ??? Subscripted assignment dimension mismatch.

PostPosted: Wed Sep 15, 2010 7:58 am
by AssiaEzzeroug
Hi,

This is a declaration order issue in the block Parameters; sigma is a function of alpha, then you have to assign a value to alpha before declaring sigma as you did. Otherwise you get this "NaN" associated with sigma in M_.params.

Best

Re: ??? Subscripted assignment dimension mismatch.

PostPosted: Thu Sep 16, 2010 1:41 pm
by vad0
Thanks a lot!