Another error in metropolis.m

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);

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

[quote=“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[/quote]

Thank you very much, St