? Subscripted assignment dimension mismatch

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.
model.mod (624 Bytes)

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

Thanks a lot!