by georgiana_alina » Mon May 05, 2014 7:15 pm
Hi everyone!
I was trying to complete in Dynare 4.4.0 the forecast of the output in case of Smets/Wouters (2007) model.
I wrote the command described bellow, as I have a number of 56 observed variables and I want to get the forecast for 4 periods:
estimation(datafile=MATAeuazi2,xls_sheet=MATAeuazi2,xls_range=A1:G56,prefilter=1,nobs=[53:56], mh_replic=20000, mh_nblocks=2, mh_jscale=0.30, presample=0, mode_check, forecast=4,mh_drop=0.5,nodiagnostic) y;
According with the User Guide manual, my undertanding is that I have to run firstly the Metropolis-Hastings algorithm, before running the forecast of the estimated model.
So, I tried to write to following command:
estimation(datafile=MATAeuazi2,xls_sheet=MATAeuazi2,xls_range=A1:G56,prefilter=1,nobs=[53:56],mh_replic=20000,mh_nblocks=2,mh_jscale=0.30,presample=0,mode_compute=6,forecast=4,mh_drop=0.5,nodiagnostic) y;
In both of the cases the error described bellow occurred.
Can you please help me regarding the command that I should write in order to get the correct forecast for the four periods mentioned above?
Thanks a lot!
Description of the error:
Restricting the sample to observations 1 to 53. Using in total 53 observations.
You are trying to estimate a model with a non zero steady state for the observed endogenous
variables using demeaned data!
Error using initial_estimation_checks (line 75)
You should change something in your mod file...
Error in initial_estimation_checks (line 75)
error('You should change something in your mod file...')
Error in dynare_estimation_1 (line 180)
oo_ = initial_estimation_checks(objective_function,xparam1,dataset_,M_,estim_params_,options_,bayestopt_,oo_);
Error in dynare_estimation (line 72)
dynare_estimation_1(var_list,M_.dname);
Error in azi2forec6 (line 496)
dynare_estimation(var_list_);
Error in dynare (line 162)
evalin('base',fname) ;