Page 1 of 1

Another error in metropolis.m

PostPosted: Mon Feb 06, 2006 10:46 am
by arnedam
I got the following error message immediately after the table with the MH estimation results:

??? Undefined function or variable 'MAX_nirfs'.

Error in ==> c:\matlab\dynare_v3\matlab\metropolis.m
On line 2496 ==> elseif nvn & B > MAX_nirfs

Error in ==> c:\matlab\dynare_v3\matlab\dynare_estimation.m
On line 772 ==> metropolis(xparam1,invhess,gend,data,rawdata,bounds);

Error in ==> Z:\demand\matlab\dynare\m1est7.m
On line 390 ==> dynare_estimation(var_list_);

Error in ==> c:\matlab\dynare_v3\matlab\dynare.m
On line 26 ==> evalin('base',fname) ;



The MH algorithm was called with the following Dynare statement:
estimation(datafile=UKdat,nobs=84,mh_replic=20000,mh_nblocks=5,mh_jscale=0.1,mode_compute=0,mode_file=m1est6_mode,moments_varendo,bayesian_irf);

PostPosted: Mon Feb 06, 2006 12:15 pm
by StephaneAdjemian
I'm sorry for this little bug.

All you have to do is to open the file metropolis.m and to replace "MAX_nirfs" by "MAX_nirfs_dsge" (line 2496).

St

PostPosted: Mon Feb 06, 2006 3:21 pm
by arnedam
StephaneAdjemian wrote:I'm sorry for this little bug.

All you have to do is to open the file metropolis.m and to replace "MAX_nirfs" by "MAX_nirfs_dsge" (line 2496).

St

PostPosted: Mon Feb 06, 2006 5:09 pm
by StephaneAdjemian
arnedam wrote:
StephaneAdjemian wrote:I'm sorry for this little bug.

All you have to do is to open the file metropolis.m and to replace "MAX_nirfs" by "MAX_nirfs_dsge" (line 2496).

St

PostPosted: Tue Feb 07, 2006 10:23 am
by arnedam
Thank you very much, St