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

time-shift
Stéphane Adjemian (Scylla) 2014-01-30 14:39:06 +01:00
parent 2e1ad9c51b
commit 00cfec8fb6
1 changed files with 6 additions and 5 deletions

View File

@ -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.