Page 1 of 1

Error in metropolis_hastings_initialization

PostPosted: Sun Mar 06, 2016 11:47 am
by lelos
Dear Professor,

I get the following error message. Can you please help me with it?

Etimation::mcmc: One Chain mode.
Index exceeds matrix dimensions.
Error in metropolis_hastings_initialization (line 97)
fprintf(fidlog,[' Number of simulations per block: ' int2str(nruns(1)) '\n']);
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 77)
dynare_estimation_1(var_list,M_.dname);
Error in DSGE_1 (line 366)
dynare_estimation(var_list_);
Error in dynare (line 180)
evalin('base',fname) ;
Error in DSGE_model (line 11)
dynare DSGE_1.mod


I use the following command
Code: Select all
estimation(nograph, datafile = DSGE, prefilter = 1, nobs=[132:135], mode_compute = 4,mh_nblocks = 0, mh_replic = 80000, mh_drop = 0.35, mh_jscale = 0.35, forecast = 4) d;


Much appreciated

Re: Error in metropolis_hastings_initialization

PostPosted: Sun Mar 06, 2016 7:14 pm
by jpfeifer
You need at least 1 chain, but you set
Code: Select all
mh_nblocks = 0