From ce1e29ed97f4ee0f406a3c805c3e4b77ec0773e2 Mon Sep 17 00:00:00 2001
From: sebastien <sebastien@ac1d8469-bf42-47a9-8791-bf33cf982152>
Date: Mon, 27 Oct 2008 11:39:17 +0000
Subject: [PATCH] 4.0: merged r2131 and r2133 changesets (corrected bug related
 to saving oo_.FilterVariablesKStepAheadVariances and
 oo_.FilteredVariablesShockDecomposition)

git-svn-id: https://www.dynare.org/svn/dynare/branches/4.0@2207 ac1d8469-bf42-47a9-8791-bf33cf982152
---
 matlab/dynare_estimation.m | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/matlab/dynare_estimation.m b/matlab/dynare_estimation.m
index 28f5bfc957..b0daf28fe8 100644
--- a/matlab/dynare_estimation.m
+++ b/matlab/dynare_estimation.m
@@ -966,7 +966,7 @@ if (~((any(bayestopt_.pshape > 0) & options_.mh_replic) | (any(bayestopt_.pshape
     oo_.FilteredVariablesKStepAhead = aK(options_.filter_step_ahead, ...
                                          i_endo_nbr,:);
     if isfield(options_,'kalman_algo')
-        if options_.kalman_algo > 4
+        if options_.kalman_algo > 2
             oo_.FilteredVariablesKStepAheadVariances = PK(options_.filter_step_ahead,i_endo_nbr,i_endo_nbr,:);
             oo_.FilteredVariablesShockDecomposition = ...
                 decomp(options_.filter_step_ahead,i_endo_nbr,:,:);
-- 
GitLab