Commit 1098fb45 authored by Michel Juillard's avatar Michel Juillard
Browse files

ramsey_policy: eliminating unnecessary leads and lags

parent 03961122
......@@ -223,6 +223,17 @@ i_leadlag1 = zeros(size(i_leadlag1))';
i_leadlag1(nonzeros(m)) = 1:nnz(m);
i_leadlag1 = i_leadlag1';
%eliminating lags in t-2 and leads in t+2, if possible
if all(i_leadlag1(5,:)==0)
i_leadlag1 = i_leadlag1(1:4,:);
max_lead1 = 1;
end
if all(i_leadlag1(1,:)==0)
i_leadlag1 = i_leadlag1(2:4,:);
max_lag1 = 1;
end
% setting expanded model parameters
% storing original values
M_.endo_nbr = endo_nbr1;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment