From f1ffeb29bbad13aaf6543ced31cc1a0b1f77b135 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?St=C3=A9phane=20Adjemian=20=28Charybdis=29?=
 <stephane.adjemian@univ-lemans.fr>
Date: Wed, 21 Sep 2011 19:05:34 +0200
Subject: [PATCH] Correction of the previous commit
 (3412d5e20a7720ad6706abf03954bd310091149e). Set options_.lik_init=3 if
 lik_init==1 and unit_root_vars keyword appears in the mod file.

---
 matlab/dynare_estimation_init.m | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/matlab/dynare_estimation_init.m b/matlab/dynare_estimation_init.m
index 500a3078c..e9c6754f2 100644
--- a/matlab/dynare_estimation_init.m
+++ b/matlab/dynare_estimation_init.m
@@ -304,6 +304,9 @@ if ~isempty(options_.unit_root_vars)
         bayestopt_.restrict_var_list_nonstationary = ...
             nonzeros(l2(:,bayestopt_.restrict_var_list_nonstationary));
     end
+    if options_.lik_init==1
+        options_.lik_init = 3;
+    end
 end % if ~isempty(options_.unit_root_vars)
 
 % Test if the data file is declared.
-- 
GitLab