parent
582bcb7a8e
commit
c6dc36536d
|
@ -111,6 +111,20 @@ if info
|
|||
error('The initial value of the prior is -Inf')
|
||||
end
|
||||
|
||||
if DynareOptions.ramsey_policy
|
||||
%test whether specification matches
|
||||
inst_nbr = size(DynareOptions.instruments,1);
|
||||
if inst_nbr~=0
|
||||
orig_endo_aux_nbr = Model.orig_endo_nbr + min(find([Model.aux_vars.type] == 6)) - 1;
|
||||
implied_inst_nbr = orig_endo_aux_nbr - Model.orig_eq_nbr;
|
||||
if inst_nbr>implied_inst_nbr
|
||||
error('You have specified more instruments than there are omitted equations')
|
||||
elseif inst_nbr<implied_inst_nbr
|
||||
error('You have specified fewer instruments than there are omitted equations')
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
% Evaluate the likelihood.
|
||||
ana_deriv = DynareOptions.analytic_derivation;
|
||||
DynareOptions.analytic_derivation=0;
|
||||
|
|
Loading…
Reference in New Issue