Skip to content
Snippets Groups Projects
Verified Commit 6abfc52a authored by Stéphane Adjemian's avatar Stéphane Adjemian
Browse files

Fix var expectation weights when auxiliary model has a constant.

Increment index variables_id_in_var if constant is present in VAR model (first position in the Companion representation)..

(cherry picked from commit d440b708)
parent ac42504f
Branches
Tags
No related merge requests found
......@@ -108,6 +108,10 @@ for i = 1:m
end
end
if isfield(auxmodel, 'isconstant') && auxmodel.isconstant
variables_id_in_var = variables_id_in_var+1;
end
% Get the horizon parameter.
horizon = varexpectationmodel.horizon;
......@@ -214,4 +218,4 @@ if isequal(varexpectationmodel.auxiliary_model_type, 'var')
end
else
DynareModel.params(varexpectationmodel.param_indices) = parameters;
end
end
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment