Trap when exo_nbr==1.

git-svn-id: file:///home/sebastien/dynare/gsa_dyn@141 f1850c17-3b45-254b-b221-fcb05880fee1
time-shift
rattoma 2009-10-09 07:59:00 +00:00
parent 44c2fd0053
commit 8b12dbc261
1 changed files with 4 additions and 2 deletions

View File

@ -38,9 +38,11 @@ function [vdec, corr, autocorr, z, zz] = th_moments(dr,var_list)
z;
%'VARIANCE DECOMPOSITION (in percent)';
if M_.exo_nbr>1,
vdec = 100*gamma_y{options_.ar+2}(i1,:);
else
vdec = 100*ones(size(gamma_y{1}(i1,1)));
end
%'MATRIX OF CORRELATIONS';
corr = gamma_y{1}(i1,i1)./(sd(i1)*sd(i1)');
corr = corr-diag(diag(corr))+diag(diag(gamma_y{1}(i1,i1)));