discretionary_policy_1.m: take care of presence of auxiliary equations

Happens e.g. with news shocks
time-shift
Johannes Pfeifer 2020-11-11 22:07:33 +01:00
parent 460895d20e
commit c0c1b98326
1 changed files with 1 additions and 1 deletions

View File

@ -91,7 +91,7 @@ end
Indices={'lag','contemp','lead'};
iter=1;
for j=1:numel(Indices)
A.(Indices{j})=zeros(M_.orig_eq_nbr,M_.endo_nbr);
A.(Indices{j})=zeros(M_.eq_nbr,M_.endo_nbr);
if strcmp(Indices{j},'contemp')||(strcmp(Indices{j},'lag') && M_.maximum_lag)||(strcmp(Indices{j},'lead') && M_.maximum_lead)
[~,row,col]=find(M_.lead_lag_incidence(iter,:));
A.(Indices{j})(:,row)=jacobia_(:,col);