Fixed columns ordering in VAR AR matrices.

time-shift
Stéphane Adjemian(Charybdis) 2018-05-29 12:08:37 +02:00
parent 689a9880f4
commit 966d9797dd
1 changed files with 6 additions and 1 deletions

View File

@ -154,8 +154,13 @@ for i = 1:length(rhsvars)
end
end
end
end
% Temporary bug fix (ordering of the variables in the VAR model)
[a,b,c] = intersect(M_.var.toto.lhs, oo_.var.toto.ar_idx, 'stable')
oo_.var.toto.ar_idx = oo_.var.toto.ar_idx(c);
oo_.var.toto.ar = oo_.var.toto.ar(:,c,:);
end
function lhsvaridx = findLhsInAuxVar(auxVar, lhsvars)