In a block decomposed model the variables are not stored in the usual order

time-shift
Ferhat Mihoubi 2011-10-28 22:27:15 +02:00
parent ca10372607
commit 0096c7575a
1 changed files with 5 additions and 1 deletions

View File

@ -86,7 +86,11 @@ switch nargin
nstatic = DynareResults.dr.nstatic;
npred = DynareResults.dr.npred;
iv = (1:endo_nbr)';
ic = [ nstatic+(1:npred) endo_nbr+(1:size(DynareResults.dr.ghx,2)-npred) ]';
if DynareOptions.block == 0
ic = [ nstatic+(1:npred) endo_nbr+(1:size(DynareResults.dr.ghx,2)-npred) ]';
else
ic = DynareResults.dr.restrict_columns;
end;
case 4
iv = DynareResults.dr.restrict_var_list;
ic = DynareResults.dr.restrict_columns;