From 9fa64ee0d47f6f1ca87afd3ac15429c7b3113a51 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Villemot?= Date: Fri, 24 Mar 2023 12:29:42 +0100 Subject: [PATCH] ramsey_policy and estimation: remove incorrect check about number of instruments These should only be warnings, and they are already implemented in model_diagnostics (see 39ae080997618787ec229adeeb1a6d7364136bf6). --- matlab/initial_estimation_checks.m | 18 ++---------------- matlab/ramsey_policy.m | 18 +----------------- 2 files changed, 3 insertions(+), 33 deletions(-) diff --git a/matlab/initial_estimation_checks.m b/matlab/initial_estimation_checks.m index 325ca12b0..e899e9744 100644 --- a/matlab/initial_estimation_checks.m +++ b/matlab/initial_estimation_checks.m @@ -20,7 +20,7 @@ function DynareResults = initial_estimation_checks(objective_function,xparam1,Dy % SPECIAL REQUIREMENTS % none -% Copyright © 2003-2022 Dynare Team +% Copyright © 2003-2023 Dynare Team % % This file is part of Dynare. % @@ -228,20 +228,6 @@ if isfield(Model,'filter_initial_state') && ~isempty(Model.filter_initial_state) end end -if DynareOptions.ramsey_policy - %test whether specification matches - inst_nbr = size(DynareOptions.instruments,1); - if inst_nbr~=0 - orig_endo_aux_nbr = Model.orig_endo_nbr + min(find([Model.aux_vars.type] == 6)) - 1; - implied_inst_nbr = orig_endo_aux_nbr - Model.orig_eq_nbr; - if inst_nbr>implied_inst_nbr - error('You have specified more instruments than there are omitted equations') - elseif inst_nbrimplied_inst_nbr - error('You have specified more instruments than there are omitted equations') - elseif inst_nbr