From 3afe7f13ee9ca439f927e6cc01a252bf4c9f73ed Mon Sep 17 00:00:00 2001
From: Johannes Pfeifer <jpfeifer@gmx.de>
Date: Fri, 9 Dec 2022 13:19:32 +0100
Subject: [PATCH] dynare_estimation_init.m: set observable mapping for
 inversion filter if only smoother is used

(cherry picked from commit a4634cd1b71f993e13989a3a508b289dff35a839)
---
 matlab/dynare_estimation_init.m | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/matlab/dynare_estimation_init.m b/matlab/dynare_estimation_init.m
index ce3b31dabc..3910042516 100644
--- a/matlab/dynare_estimation_init.m
+++ b/matlab/dynare_estimation_init.m
@@ -690,7 +690,7 @@ if options_.heteroskedastic_filter
     end
 end
 
-if options_.occbin.likelihood.status && options_.occbin.likelihood.inversion_filter
+if (options_.occbin.likelihood.status && options_.occbin.likelihood.inversion_filter) || (options_.occbin.smoother.status && options_.occbin.smoother.inversion_filter)
     if isempty(options_.occbin.likelihood.IVF_shock_observable_mapping)
         options_.occbin.likelihood.IVF_shock_observable_mapping=find(diag(M.Sigma_e)~=0);
     else
-- 
GitLab