Error Message when computing moments of endogenous variables
Posted: Mon Apr 06, 2009 1:09 am
When I simulate a model with stoch_simul, an error message pops out:
??? Subscripted assignment dimension mismatch.
Error in ==> th_autocovariances at 131
Gamma_y{nar+2}(:,i) = abs(diag(aa*vx1*aa'+b2(:,i)*b2(:,i)'))./vv;
Error in ==> disp_th_moments at 38
[oo_.gamma_y,ivar] = th_autocovariances(dr,ivar,M_,options_);
Error in ==> stoch_simul at 69
disp_th_moments(oo_.dr,var_list);
Error in ==> rbc_invadj at 222
info = stoch_simul(var_list_);
Error in ==> dynare at 102
evalin('base',fname) ;
It seems that the matrix on the right hand side is empty. If I set options_.nomoments=1, then everything is fine. I am curious about why dynare can compute the IRFs but not the moments. What do I miss? My code is attached.
??? Subscripted assignment dimension mismatch.
Error in ==> th_autocovariances at 131
Gamma_y{nar+2}(:,i) = abs(diag(aa*vx1*aa'+b2(:,i)*b2(:,i)'))./vv;
Error in ==> disp_th_moments at 38
[oo_.gamma_y,ivar] = th_autocovariances(dr,ivar,M_,options_);
Error in ==> stoch_simul at 69
disp_th_moments(oo_.dr,var_list);
Error in ==> rbc_invadj at 222
info = stoch_simul(var_list_);
Error in ==> dynare at 102
evalin('base',fname) ;
It seems that the matrix on the right hand side is empty. If I set options_.nomoments=1, then everything is fine. I am curious about why dynare can compute the IRFs but not the moments. What do I miss? My code is attached.