From d1bbe8f852f6aa563f07122bced869e535e69112 Mon Sep 17 00:00:00 2001 From: Johannes Pfeifer Date: Sun, 1 Mar 2015 14:41:30 +0100 Subject: [PATCH] Restore backward compatibility with old data interface --- matlab/dynare_estimation_init.m | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/matlab/dynare_estimation_init.m b/matlab/dynare_estimation_init.m index bac8185b5..64390686d 100644 --- a/matlab/dynare_estimation_init.m +++ b/matlab/dynare_estimation_init.m @@ -530,12 +530,10 @@ end [dataset_, dataset_info, newdatainterfaceflag] = makedataset(options_, options_.dsge_var*options_.dsge_varlag, gsa_flag); +%set options for old interface from the ones for new interface bayestopt_.mean_varobs = dataset_info.descriptive.mean'; - -% Set options_.nobs if needed -if newdatainterfaceflag - options_.nobs = dataset_.nobs; -end +options_.nobs = dataset_.nobs; +options_.first_obs=double(dataset_.init); % setting steadystate_check_flag option if options_.diffuse_filter