Skip to content
Snippets Groups Projects
Commit 345a2807 authored by MichelJuillard's avatar MichelJuillard
Browse files

fix problem with order of approximation in estimation

parent 44629c4e
No related branches found
Tags
No related merge requests found
......@@ -61,14 +61,12 @@ for i = 1:size(M_.endo_names,1)
end
%% Set the order of approximation to one (if needed).
if options_.order > 1
if ~exist('particle','dir')
if options_.order > 1 && ~isfield(options_,'nonlinear_filter')
disp('This version of Dynare cannot estimate non linearized models!')
disp('Set "order" equal to 1.')
disp(' ')
options_.order = 1;
end
end
% Set options_.lik_init equal to 3 if diffuse filter is used or
% kalman_algo refers to a diffuse filter algorithm.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment