Commit c0029bc1 authored by Sébastien Villemot's avatar Sébastien Villemot
Browse files

Merge pull request #316 from JohannesPfeifer/master

Change of Field name to be consistent with manual
parents 8185ee97 cd26c3ce
......@@ -311,7 +311,7 @@ for i = 1:M_.exo_nbr
eval(['oo_.PosteriorIRF.dsge.Mean.' name ' = MeanIRF(:,j,i);']);
eval(['oo_.PosteriorIRF.dsge.Median.' name ' = MedianIRF(:,j,i);']);
eval(['oo_.PosteriorIRF.dsge.Var.' name ' = VarIRF(:,j,i);']);
eval(['oo_.PosteriorIRF.dsge.Distribution.' name ' = DistribIRF(:,:,j,i);']);
eval(['oo_.PosteriorIRF.dsge.deciles.' name ' = DistribIRF(:,:,j,i);']);
eval(['oo_.PosteriorIRF.dsge.HPDinf.' name ' = HPDIRF(:,1,j,i);']);
eval(['oo_.PosteriorIRF.dsge.HPDsup.' name ' = HPDIRF(:,2,j,i);']);
end
......@@ -348,7 +348,7 @@ if MAX_nirfs_dsgevar
eval(['oo_.PosteriorIRF.bvardsge.Mean.' name ' = MeanIRFdsgevar(:,j,i);']);
eval(['oo_.PosteriorIRF.bvardsge.Median.' name ' = MedianIRFdsgevar(:,j,i);']);
eval(['oo_.PosteriorIRF.bvardsge.Var.' name ' = VarIRFdsgevar(:,j,i);']);
eval(['oo_.PosteriorIRF.bvardsge.Distribution.' name ' = DistribIRFdsgevar(:,:,j,i);']);
eval(['oo_.PosteriorIRF.bvardsge.deciles.' name ' = DistribIRFdsgevar(:,:,j,i);']);
eval(['oo_.PosteriorIRF.bvardsge.HPDinf.' name ' = HPDIRFdsgevar(:,1,j,i);']);
eval(['oo_.PosteriorIRF.bvardsge.HPDsup.' name ' = HPDIRFdsgevar(:,2,j,i);']);
end
......
......@@ -32,16 +32,16 @@ function dyn_saveas(h,fname,DynareOptions)
if any(strcmp('eps',cellstr(DynareOptions.graph_format)))
if exist('OCTAVE_VERSION')
eval(['print -depsc2 ' fname '.eps']);
eval(['print -depsc2 ' fname '.eps']); % still need to be fixed to take handle into account
else
eval(['print -depsc2 ' fname]);
print(h,'-depsc2',[fname,'.eps'])
end
end
if any(strcmp('pdf',cellstr(DynareOptions.graph_format)))
if exist('OCTAVE_VERSION')
warning('Octave cannot create pdf files!')
else
eval(['print -dpdf ' fname]);
print(h,'-dpdf',[fname,'.pdf'])
end
end
if any(strcmp('fig',cellstr(DynareOptions.graph_format)))
......
......@@ -108,6 +108,7 @@ if SampleSize == 1,
for ip=1:nparam,
text(ip,dy(1),name{is(ip)},'rotation',90,'HorizontalAlignment','right','interpreter','none')
end
legend('Moments','Model','LRE model','Location','Best')
title('Sensitivity bars using derivatives (log-scale)')
dyn_saveas(hh,[IdentifDirectoryName '/' M_.fname '_sensitivity_' tittxt1 ],options_);
......
......@@ -84,7 +84,7 @@ for i = 1:nvar
eval(['oo_.' name3 '.Mean.' name ' = Mean(:,i);']);
eval(['oo_.' name3 '.Median.' name ' = Median(:,i);']);
eval(['oo_.' name3 '.Var.' name ' = Var(:,i);']);
eval(['oo_.' name3 '.Distribution.' name ' = Distrib(:,:,i);']);
eval(['oo_.' name3 '.deciles.' name ' = Distrib(:,:,i);']);
eval(['oo_.' name3 '.HPDinf.' name ' = HPD(1,:,i);']);
eval(['oo_.' name3 '.HPDsup.' name ' = HPD(2,:,i);']);
end
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment