diff --git a/matlab/set_state_space.m b/matlab/set_state_space.m index 209a60b1f1010e003c8015e52d0c7baf4c98848e..16ebb5502d9ca52360e5f4d74ed1fd26454c498d 100644 --- a/matlab/set_state_space.m +++ b/matlab/set_state_space.m @@ -98,8 +98,8 @@ kmask(i_kmask) = (1:nd); % auxiliary equations % composition of state vector -% col 1: variable; col 2: lead/lag in z(t+1); -% col 3: A cols for t+1 (D); col 4: A cols for t (E) +% col 1: variable (index in DR-order); col 2: lead/lag in z(t+1); +% col 3: A cols for t+1 (D); col 4: A cols for t (E) kstate = [ repmat([1:endo_nbr]',klen-1,1) kron([klen:-1:2]',ones(endo_nbr,1)) ... zeros((klen-1)*endo_nbr,2)]; kiy = flipud(lead_lag_incidence(:,order_var))';