Problem "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.

Problem "Subscripted assignment dimension mismatch"

Postby nanshi » Tue Jul 12, 2011 11:20 am

Hi there,

I try to simulate a model and the mod file passed the rank condition. But then the simulation shows a lot "NaN" for theoretical moments and finally displays error information below. Really appreciate if anyone can help me with this problem. I attach my mod file below as well.

??? Subscripted assignment dimension mismatch.

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

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

Error in ==> simul at 431
info = stoch_simul(var_list_);

Error in ==> dynare at 132
evalin('base',fname) ;
Attachments
simul.mod
(6.89 KiB) Downloaded 92 times
nanshi
 
Posts: 1
Joined: Tue Jul 12, 2011 11:10 am

Re: Problem "Subscripted assignment dimension mismatch"

Postby SébastienVillemot » Mon Aug 29, 2011 3:41 pm

The "NaN" in the moments correspond to the non stationary variables of your model. There are a lot of them, since you have three unit roots.

The crash is due to the fact that all your variables are either non stationary or constant (zero variance). This is a very special case which is so far not handled nicely by Dynare. Note that it is impossible to compute autocorrelations in that case. In future versions, Dynare will display a more intelligible error message.

Best,
Sébastien Villemot
Economist at OFCE – Sciences Po
SébastienVillemot
 
Posts: 706
Joined: Fri Dec 07, 2007 2:29 pm
Location: Paris, France


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 12 guests