I have some troubles with two of the options in the estimation command, namely the forecast=PERIODS option and the conditional_variance_decomposition=[PERIODS] option.
Everything works fine. After running the MH algorithm the MCMC diagnostics and the posterior simulations are spitted out and they look ok. However, afterwards the estimation cannot be completed, i.e. the forecasts and the variance decomposition do not pop up. Instead, the following error message appears:
Error using chol
Matrix must be positive definite.
Error in conditional_variance_decomposition (line 56)
B = StateSpaceModel.impulse_matrix*chol(StateSpaceModel.state_innovations_covariance_matrix)’;
Error in dsge_simulated_theoretical_conditional_variance_decomposition (line 124)
Conditional_decomposition_array(:,:,:,linea) = conditional_variance_decomposition(StateSpaceModel, Steps, ivar);
Error in posterior_analysis>job (line 75)
[nvar,vartan,NumberOfFiles] = …
Error in posterior_analysis (line 34)
oo_ = job(type,SampleSize,arg1,arg2,arg3,options_,M_,oo_);
Error in compute_moments_varendo (line 116)
oo_ = posterior_analysis(‘conditional decomposition’,i,M_.exo_names(j,:),Steps,options_,M_,oo_);
Error in dynare_estimation_1 (line 941)
oo_ = compute_moments_varendo(‘posterior’,options_,M_,oo_,var_list_);
Error in dynare_estimation (line 70)
Error in NKM_cor_bm_est_01_08_modeified_priors (line 524)
Error in dynare (line 120)
After thoroughly revising the forum this has to do with the mode computing technique. I am using mode_compute=9, but I also tried mode_compute=8 and the problem is still there.
Can someone help me on this?
Thanks a lot in advance!