From 02c7b204d8f853a9de5a7f8286d7323f723cd33a Mon Sep 17 00:00:00 2001 From: michel Date: Sat, 23 May 2009 15:49:00 +0000 Subject: [PATCH] 4.1: allow smoother computation when mode_compute=0 git-svn-id: https://www.dynare.org/svn/dynare/trunk@2685 ac1d8469-bf42-47a9-8791-bf33cf982152 --- matlab/dynare_estimation_1.m | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/matlab/dynare_estimation_1.m b/matlab/dynare_estimation_1.m index d63b9080e..433800d59 100644 --- a/matlab/dynare_estimation_1.m +++ b/matlab/dynare_estimation_1.m @@ -317,7 +317,7 @@ missing_value = ~(number_of_observations == gend*n_varobs); initial_estimation_checks(xparam1,gend,data,data_index,number_of_observations,no_more_missing_observations); -if options_.mode_compute == 0 & length(options_.mode_file) == 0 +if options_.mode_compute == 0 if options_.smoother == 1 [atT,innov,measurement_error,updated_variables,ys,trend_coeff,aK,T,R,P,PK,d,decomp] = DsgeSmoother(xparam1,gend,data,data_index,missing_value); oo_.Smoother.SteadyState = ys; @@ -336,10 +336,12 @@ if options_.mode_compute == 0 & length(options_.mode_file) == 0 eval(['oo_.UpdatedVariables.' deblank(M_.endo_names(dr.order_var(i),:)) ' = updated_variables(i,:)'';']); end for i=1:M_.exo_nbr - eval(['oo_.SmoothedShocks.' deblank(M_.exo_names(i,:)) ' = innov(i,:)'';']); + eval(['oo_.SmoothedShocks.' deblank(M_.exo_names(i,:)) ' = innov(i,:)'';']); end end - return; + if length(options_.mode_file) == 0 + return; + end end %% Estimation of the posterior mode or likelihood mode