??? Subscripted assignment dimension mismatch.

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.

??? Subscripted assignment dimension mismatch.

Postby vad0 » Tue Sep 14, 2010 4:42 pm

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.
Attachments
model.mod
(624 Bytes) Downloaded 208 times
vad0
 
Posts: 2
Joined: Sun Jun 20, 2010 7:05 pm
Location: Russia

Re: ??? Subscripted assignment dimension mismatch.

Postby AssiaEzzeroug » Wed Sep 15, 2010 7:58 am

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
AssiaEzzeroug
 
Posts: 83
Joined: Tue Nov 24, 2009 3:48 pm

Re: ??? Subscripted assignment dimension mismatch.

Postby vad0 » Thu Sep 16, 2010 1:41 pm

Thanks a lot!
vad0
 
Posts: 2
Joined: Sun Jun 20, 2010 7:05 pm
Location: Russia


Return to Dynare help

Who is online

Users browsing this forum: Google [Bot] and 7 guests