Commit f8cb52bd authored by Houtan Bastani's avatar Houtan Bastani
Browse files

update make_report_irfs

parent 00a87039
function make_report_irfs(M, oo) function make_report_irfs(M, oo)
% Builds posterior IRFs after the MH algorithm. % Builds canned IRF report
% %
% INPUTS % INPUTS
% M [struct]
% oo [struct] % oo [struct]
% %
% OUTPUTS % OUTPUTS
...@@ -50,11 +51,13 @@ function make_report_irfs(M, oo) ...@@ -50,11 +51,13 @@ function make_report_irfs(M, oo)
for i = 1:length(M.exo_names) for i = 1:length(M.exo_names)
for j = 1:length(M.endo_names) for j = 1:length(M.endo_names)
if mod(n6 - 1, 6) == 0 if mod(n6 - 1, 6) == 0
r = r.addPage('title', {'Canned Irf Report'; ['shock ' M.exo_names(i)]}); r = r.addPage('title', {'Canned Irf Report'; ['shock ' ...
strrep(strtrim(M.exo_names(i,:)),'_','\_')]});
r = r.addSection('cols', 2); r = r.addSection('cols', 2);
n6 = 1; n6 = 1;
end end
idx = ismember(fields,[M.endo_names(j) '_' M.exo_names(i)]); idx = ismember(fields,[strtrim(M.endo_names(j,:)) '_' ...
strtrim(M.exo_names(i,:))]);
if any(idx) if any(idx)
r = r.addGraph('data', dseries(oo.irfs.(fields{idx})'), ... r = r.addGraph('data', dseries(oo.irfs.(fields{idx})'), ...
'title', strrep(fields{idx}, '_', '\_'), ... 'title', strrep(fields{idx}, '_', '\_'), ...
......
Supports Markdown
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