mode_compute=0: run dyn_forecast after smoother when forecast > 0

time-shift
Johannes Pfeifer 2021-01-10 17:12:59 +01:00
parent c397828eb7
commit ea03868a6b
1 changed files with 3 additions and 0 deletions

View File

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