Updated test on options_.order (current version can estimate dsge models with non linear filters considering a second order approximation of the model).
parent
6a8095303e
commit
f798118902
|
@ -58,12 +58,8 @@ for i = 1:size(M_.endo_names,1)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
% Set the order of approximation to one (if needed).
|
if options_.order>2
|
||||||
if options_.order > 1 && isempty(options_.nonlinear_filter)
|
error(['I cannot estimate a model with a ' int2str(options_.order) ' order approximation of the model!'])
|
||||||
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
|
% Set options_.lik_init equal to 3 if diffuse filter is used or
|
||||||
|
|
Loading…
Reference in New Issue