Skip to content
Snippets Groups Projects
Commit 1b60dc0a authored by Stéphane Adjemian's avatar Stéphane Adjemian Committed by Sébastien Villemot
Browse files

Issue an error message if loglinear option is equal to 1 in non linear likelihood routine.

(cherry picked from commit 00cfec8f)
parent 4db598e9
Branches
Tags
No related merge requests found
......@@ -133,6 +133,11 @@ ys = [];
trend_coeff = [];
exit_flag = 1;
% Issue an error if loglinear option is used.
if DynareOptions.loglinear
error('non_linear_dsge_likelihood: It is not possible to use a non linear filter with the option loglinear!')
end
% Set the number of observed variables
nvobs = DynareDataset.info.nvobs;
......@@ -229,11 +234,7 @@ BayesInfo.mf = BayesInfo.mf1;
if DynareOptions.noconstant
constant = zeros(nvobs,1);
else
if DynareOptions.loglinear
constant = log(SteadyState(BayesInfo.mfys));
else
constant = SteadyState(BayesInfo.mfys);
end
constant = SteadyState(BayesInfo.mfys);
end
% Define the deterministic linear trend of the measurement equation.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment