error in bayesian estimation
Posted: Wed Apr 06, 2016 3:52 am
hi,
I have a simulated model (attached) and now I am trying to estimate it using bayesian methods. However, posterior density graphs are not showing up during the whole process. Errors generated
Error using chol
Matrix must be positive definite.
Error in metropolis_hastings_initialization (line 68)
d = chol(vv);
Error in random_walk_metropolis_hastings (line 62)
[ ix2, ilogpo2, ModelName, MetropolisFolder, fblck, fline, npar, nblck, nruns, NewFile, MAX_nruns, d ] = ...
Error in dynare_estimation_1 (line 782)
feval(options_.posterior_sampling_method,objective_function,options_.proposal_distribution,xparam1,invhess,bounds,dataset_,options_,M_,estim_params_,bayestopt_,oo_);
Error in dynare_estimation (line 89)
dynare_estimation_1(var_list,dname);
Error in utility_10 (line 659)
dynare_estimation(var_list_);
Error in dynare (line 180)
evalin('base',fname) ;
How do I rectify this?
I have a simulated model (attached) and now I am trying to estimate it using bayesian methods. However, posterior density graphs are not showing up during the whole process. Errors generated
Error using chol
Matrix must be positive definite.
Error in metropolis_hastings_initialization (line 68)
d = chol(vv);
Error in random_walk_metropolis_hastings (line 62)
[ ix2, ilogpo2, ModelName, MetropolisFolder, fblck, fline, npar, nblck, nruns, NewFile, MAX_nruns, d ] = ...
Error in dynare_estimation_1 (line 782)
feval(options_.posterior_sampling_method,objective_function,options_.proposal_distribution,xparam1,invhess,bounds,dataset_,options_,M_,estim_params_,bayestopt_,oo_);
Error in dynare_estimation (line 89)
dynare_estimation_1(var_list,dname);
Error in utility_10 (line 659)
dynare_estimation(var_list_);
Error in dynare (line 180)
evalin('base',fname) ;
How do I rectify this?