From 22b1aa7a0d5d0584c65cf82c742d3025426472b0 Mon Sep 17 00:00:00 2001 From: Johannes Pfeifer Date: Tue, 9 Jun 2015 14:51:32 +0200 Subject: [PATCH] Filter out case where estimated_params block is present but smoother on calibration is requested In this case, xparam1 will be empty while estim_params_ does not have conformable dimensions. --- matlab/DsgeSmoother.m | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/matlab/DsgeSmoother.m b/matlab/DsgeSmoother.m index a692965f1..488cd7434 100644 --- a/matlab/DsgeSmoother.m +++ b/matlab/DsgeSmoother.m @@ -64,7 +64,9 @@ decomp = []; vobs = length(options_.varobs); smpl = size(Y,2); -M_ = set_all_parameters(xparam1,estim_params_,M_); +if ~isempty(xparam1) %not calibrated model + M_ = set_all_parameters(xparam1,estim_params_,M_); +end %------------------------------------------------------------------------------ % 2. call model setup & reduction program