18.06.2013 Views

Measuring the Effects of a Shock to Monetary Policy - Humboldt ...

Measuring the Effects of a Shock to Monetary Policy - Humboldt ...

Measuring the Effects of a Shock to Monetary Policy - Humboldt ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Bayesian FAVARs with Agnostic Identification 109<br />

% Price - Money - Interestrate<br />

check_result = 1;<br />

elseif all(candidate(P_INDEX (1:(length(P_INDEX))),1:specZ) > 0) &...<br />

all(candidate(M_INDEX (1:(length(M_INDEX))),1:specZ) > 0) &...<br />

all(candidate(I_INDEX (1:(length(I_INDEX))),1:specZ) < 0);<br />

else<br />

end;<br />

check_result = -1; %According <strong>to</strong> B. Mackowiak<br />

check_result = 0;<br />

%%%%%%**********************************************************%%%%%<br />

%%%%%% Bayesian FAVAR Code August 26th %%%%%<br />

%%%%%%**********************************************************%%%%%<br />

%%%%%% GLOG %%%%%<br />

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%<br />

%%%%% This Function is used <strong>to</strong> log an output string depending<br />

%%%%% on its log level glog_type. The global variable<br />

%%%%% GLOG_MODE signifies <strong>the</strong> global minimum level for<br />

%%%%% outputs and is set directly in BAYESIAN_FAVAR.<br />

%%%%% If <strong>the</strong> glog_type <strong>of</strong> an output string is less than<br />

%%%%% GLOG_MODE <strong>the</strong> output is ignored.<br />

%%%%% O<strong>the</strong>rwise GLOG uses <strong>the</strong> disp() function <strong>to</strong><br />

%%%%% display <strong>the</strong> output string.<br />

function GLOG (glog_text, glog_type)<br />

%function GLOG (glog_text, glog_type)<br />

global GLOG_MODE;<br />

if glog_type >= GLOG_MODE<br />

end<br />

disp (glog_text);<br />

%%%%%%**********************************************************%%%%%<br />

%%%%%% Bayesian FAVAR Code August 26th %%%%%<br />

%%%%%%**********************************************************%%%%%<br />

%%%%%% DO_RESULTS %%%%%<br />

%%%%%% see Sequence Diagram Block C %%%%%<br />

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%<br />

%%%%% Plots <strong>the</strong> results <strong>of</strong> all finalresponses containing more<br />

%%%%% than zero elements.<br />

function DO_RESULTS (input,results)<br />

%function DO_RESULTS (input,results)<br />

spec_nBC = length(input.specification.IRA.BC);<br />

for bc_i = 1:spec_nBC;<br />

if results.ira.finalresponses(bc_i).no > 0<br />

%%% BBE<br />

figure(bc_i )<br />

for i=1:20<br />

subplot(5,4,i)<br />

plot(input.specification.IRA.tstep,...<br />

input.specification.IRA.zeroline,’-k’, ...<br />

input.specification.IRA.tstep,...

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!