Metropolis Hastings error message

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.

Metropolis Hastings error message

Postby chiarachi » Sat Aug 17, 2013 3:36 pm

Hi,

I am performing a Bayesian estimation of a DSGE based on Smets-Wouters 2007.
I'm trying to estimate the posterior using the MH algorithm in Dynare (4.3.3) by running the following line in my mod file:

estimation(optim=('MaxIter',200),datafile=usmodel_data,mode_compute=0,mode_file=usmodel_mode,first_obs=71,presample=4,lik_init=2,prefilter=0,mh_replic=25,mh_nblocks=2,mh_jscale=0.20,mh_drop=0.2,bayesian_irf,irf=20,moments_varendo,filtered_vars,smoother);


and as a result I obtain the following error message:
------------------------------------------------------------
??? Subscripted assignment
dimension mismatch.

Error in ==> pm3 at 77
[Mean(j,i),Median(j,i),Var(j,i),HPD(:,j,i),Distrib(:,j,i)]
= ...

Error in ==>
prior_posterior_statistics at 285
pm3(endo_nbr,gend,ifil(1),B,'Smoothed
variables',...

Error in ==> dynare_estimation_1
at 966
prior_posterior_statistics('posterior',dataset_);

Error in ==> dynare_estimation at
70
dynare_estimation_1(var_list,dname);

Error in ==> usmodel2013 at 464
dynare_estimation(var_list_);

Error in ==> dynare at 120
evalin('base',fname) ;
------------------------------------------------------------


is there anyone who could explain me how to interpret it?

Thank you.
chiarachi
 
Posts: 1
Joined: Fri Aug 16, 2013 6:15 pm

Re: Metropolis Hastings error message

Postby jpfeifer » Mon Aug 19, 2013 2:37 pm

Without the mod-file and the datafile it is hard to tell.
------------
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 8 guests