Dear all,
I am trying to estimate a DSGE model and I would like to generate posterior statisctics of parameters( mean and standard deviation) by using random walk metropolis in Dynare 4.5.7.But I got the folowing error message
Error using chol
Matrix must be positive definite.
Error in posterior_sampler_initialization (line 84)
d = chol(vv);
Error in posterior_sampler (line 60)
posterior_sampler_initialization(TargetFun, xparam1, vv,
mh_bounds,dataset_,dataset_info,options_,M_,estim_params_,bayestopt_,oo_);
Error in dynare_estimation_1 (line 448)
posterior_sampler(objective_function,posterior_sampler_options.proposal_distribution,xparam1,posterior_sampler_options,bounds,dataset_,dataset_info,options_,M_,estim_params_,bayestopt_,oo_);
Error in dynare_estimation (line 105)
dynare_estimation_1(var_list,dname);
Error in cn_amend_7obs (line 448)
oo_recursive_=dynare_estimation(var_list_);
Error in dynare (line 235)
evalin(‘base’,fname) ;
I am looking forward for your help! thank you in advance. Please find attached the .m files of errors messages
Cordially
cn_amend_7obs.m (19.3 KB) dynare.m (8.3 KB) dynare_estimation.m (7.6 KB) dynare_estimation_1.m (37.3 KB) posterior_sampler.m (8.7 KB) posterior_sampler_initialization.m (24.7 KB)