dsge_likelihood.m: flag analytical_derivation as incompatible with endogenous_prior

estimate-initial-state
Johannes Pfeifer 2023-01-09 17:57:18 +01:00
parent f84753025d
commit 0b0a4ef386
1 changed files with 7 additions and 2 deletions

View File

@ -158,8 +158,13 @@ end
% Set flag related to analytical derivatives.
analytic_derivation = DynareOptions.analytic_derivation;
if analytic_derivation && DynareOptions.loglinear
error('The analytic_derivation and loglinear options are not compatible')
if analytic_derivation
if DynareOptions.loglinear
error('The analytic_derivation and loglinear options are not compatible')
end
if DynareOptions.endogenous_prior
error('The analytic_derivation and endogenous_prior options are not compatible')
end
end
if nargout==1