Error in metropolis_hastings_initialization

This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location where you will have to reset your password.
Forum rules
This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location (https://forum.dynare.org) where you will have to reset your password.

Error in metropolis_hastings_initialization

Postby lelos » Sun Mar 06, 2016 11:47 am

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
lelos
 
Posts: 35
Joined: Thu Feb 18, 2016 11:15 am

Re: Error in metropolis_hastings_initialization

Postby jpfeifer » Sun Mar 06, 2016 7:14 pm

You need at least 1 chain, but you set
Code: Select all
mh_nblocks = 0
------------
Johannes Pfeifer
University of Cologne
https://sites.google.com/site/pfeiferecon/
jpfeifer
 
Posts: 6940
Joined: Sun Feb 21, 2010 4:02 pm
Location: Cologne, Germany


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 16 guests