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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

108 Bayesian FAVARs with Agnostic Identification<br />

end;<br />

end;<br />

check_sign_restriction_result =...<br />

DO_CALCULATION_IRA_UHLIG_CHECK_SIGNRESTRICTION (input,candidateB,bc_i);<br />

if abs(check_sign_restriction_result) == 1<br />

else<br />

end;<br />

last_slice (bc_i) = last_slice (bc_i) + 1;<br />

GLOG (sprintf(’Response accepted. This is <strong>the</strong><br />

%dth accepted Response for BC-%d’, last_slice (bc_i), bc_i),1);<br />

finalresponses (bc_i).response (:,:,last_slice (bc_i)) =...<br />

check_sign_restriction_result * candidateB;<br />

if fr_current_length (bc_i) == last_slice (bc_i)<br />

%increase length<br />

end;<br />

end; %alphadraws<br />

for bc_i = 1:spec_nBC;<br />

end;<br />

fr_current_length (bc_i) =...<br />

fr_current_length (bc_i) + fr_add_length (bc_i);<br />

finalresponses (bc_i).response (:,:,fr_current_length (bc_i)) = zeros(size(input.specification.IRA.var_index_sr,1), input.specification.I<br />

% CAN NOT ACCEPT RESPONSE<br />

GLOG (sprintf(’Number <strong>of</strong> accepted Responses for BC-%d: %d’,bc_i, last_slice (bc_i)),2);<br />

finalresponses (bc_i).response = finalresponses (bc_i).response (:,:,1:last_slice (bc_i));<br />

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

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

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

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

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

%%%%%% see Sequence Diagram Block B.4.1.1 %%%%%<br />

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

%%%%%% This Function checks if a given Response satisfies <strong>the</strong><br />

%%%%%% block criteria bc_i. In that case <strong>the</strong> result<br />

%%%%%% is 1/-1. O<strong>the</strong>rwise 0.<br />

function [check_result] = DO_CALCULATION_IRA_UHLIG_CHECK_SIGNRESTRICTION (input,candidate,bc_i);<br />

%function [check_result] = DO_CALCULATION_IRA_UHLIG_CHECK_SIGNRESTRICTION (input,candidate,bc_i);<br />

%%%%% set parameters<br />

specZ = input.specification.IRA.sr_horizon;<br />

P_INDEX = input.specification.IRA.BC(bc_i).priceIndex;<br />

M_INDEX = input.specification.IRA.BC(bc_i).moneyIndex;<br />

I_INDEX = input.specification.IRA.BC(bc_i).interestIndex;<br />

if all(candidate(P_INDEX (1:(length(P_INDEX))),1:specZ) 0)

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

Saved successfully!

Ooh no, something went wrong!