From cbc0cdfef838b58f17c9a564a27b0bc7c302a6ec Mon Sep 17 00:00:00 2001 From: Johannes Pfeifer Date: Fri, 12 Jan 2018 21:32:59 +0100 Subject: [PATCH] Fix bug in multivariate Kalman smoother when observations are missing The singularity branch did not correctly account for the switching number of observables --- matlab/missing_DiffuseKalmanSmootherH1_Z.m | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/matlab/missing_DiffuseKalmanSmootherH1_Z.m b/matlab/missing_DiffuseKalmanSmootherH1_Z.m index 5ba614f94..0552da20b 100644 --- a/matlab/missing_DiffuseKalmanSmootherH1_Z.m +++ b/matlab/missing_DiffuseKalmanSmootherH1_Z.m @@ -49,7 +49,7 @@ function [alphahat,epsilonhat,etahat,atilde,P,aK,PK,decomp,V] = missing_DiffuseK % Durbin/Koopman (2012): "Time Series Analysis by State Space Methods", Oxford University Press, % Second Edition, Ch. 5 -% Copyright (C) 2004-2017 Dynare Team +% Copyright (C) 2004-2018 Dynare Team % % This file is part of Dynare. % @@ -134,9 +134,9 @@ while rank(Pinf(:,:,t+1),diffuse_kalman_tol) && t