From ea03868a6baece0762172a95fd349a3b5ad05e8a Mon Sep 17 00:00:00 2001 From: Johannes Pfeifer Date: Sun, 10 Jan 2021 17:12:59 +0100 Subject: [PATCH] mode_compute=0: run dyn_forecast after smoother when forecast > 0 --- matlab/dynare_estimation_1.m | 3 +++ 1 file changed, 3 insertions(+) diff --git a/matlab/dynare_estimation_1.m b/matlab/dynare_estimation_1.m index 7d49dcff9..8bc62ed9b 100644 --- a/matlab/dynare_estimation_1.m +++ b/matlab/dynare_estimation_1.m @@ -177,6 +177,9 @@ if isequal(options_.mode_compute,0) && isempty(options_.mode_file) && options_.m if options_.smoother [atT,innov,measurement_error,updated_variables,ys,trend_coeff,aK,T,R,P,PK,decomp,Trend,state_uncertainty,M_,oo_,options_,bayestopt_] = DsgeSmoother(xparam1,gend,transpose(data),data_index,missing_value,M_,oo_,options_,bayestopt_,estim_params_); [oo_]=store_smoother_results(M_,oo_,options_,bayestopt_,dataset_,dataset_info,atT,innov,measurement_error,updated_variables,ys,trend_coeff,aK,P,PK,decomp,Trend,state_uncertainty); + if options_.forecast > 0 + oo_.forecast = dyn_forecast(var_list_,M_,options_,oo_,'smoother',dataset_info); + end end %reset qz_criterium options_.qz_criterium=qz_criterium_old;