Skip to content
Snippets Groups Projects

missing_DiffuseKalmanSmootherH1_Z.m: fix bug with variable dimension

Merged Johannes Pfeifer requested to merge JohannesPfeifer/dynare:Smoother_bug into master
4 files
+ 121
1
Compare changes
  • Side-by-side
  • Inline
Files
4
@@ -297,7 +297,7 @@ if d %diffuse periods
+ L_1'*N(:,:,t+1)*L_1; % DK (2012), eq. 5.29
end
else
r0(:,t) = Z(di,:)'*iFstar(di,di,t)*v(di,t)-Lstar(:,di,t)'*r0(:,t+1); % DK (2003), eq. (14)
r0(:,t) = Z(di,:)'*iFstar(di,di,t)*v(di,t)-Lstar(:,:,t)'*r0(:,t+1); % DK (2003), eq. (14)
r1(:,t) = T'*r1(:,t+1); % DK (2003), eq. (14)
if state_uncertainty_flag
N(:,:,t)=Z(di,:)'*iFstar(di,di,t)*Z(di,:)...
Loading