i just do my homework for an RBC model with risk shock , finishing my file writing and try to run it, but something went wrong.the error massage flowing:
错误使用 chol
矩阵必须为正定矩阵。
出错 th_autocovariances (line 191)
cs = chol(SS)’;
出错 disp_th_moments (line 40)
[oo_.gamma_y,stationary_vars] = th_autocovariances(dr, ivar, M_, options_, nodecomposition);
出错 stoch_simul (line 194)
oo_=disp_th_moments(oo_.dr,var_list,M_,options_,oo_);
出错 model2.driver (line 302)
[info, oo_, options_, M_] = stoch_simul(M_, options_, oo_, var_list_);
出错 dynare (line 293)
evalin(‘base’,[fname ‘.driver’]) ;
i have no idea about what is it going on
model2.log (4.3 KB)