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.

Bayesian FAVARs with Agnostic Identification 87<br />

clc;<br />

% Declarations<br />

% Declare global<br />

% 1 : Internal Var Moni<strong>to</strong>ring<br />

% 2 : Information<br />

% 3 : Warnings<br />

% 4 : Errors<br />

global GLOG_MODE;<br />

GLOG_MODE = 2;<br />

GLOG (’Begin <strong>of</strong> Bayesian FAVAR Estimation’,2);<br />

% Main<br />

[input] = DO_INPUT; % see Sequence Diagram - Block A<br />

[results] = DO_CALCULATION (input); % see Sequence Diagram - Block B<br />

DO_RESULTS (input,results); % see Sequence Diagram - Block C<br />

GLOG (’End <strong>of</strong> Bayesian FAVAR Estimation’,2);<br />

%pr<strong>of</strong>ile viewer<br />

%<br />

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

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

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

%%%%%% DO _INPUT_VERSION %%%%%<br />

%%%%%% see Sequence Diagram Block A.1 %%%%%<br />

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

%%%%%% version.versionId %%%%%<br />

%%%%%% version.nGibbsit %%%%%<br />

%%%%%% version.burn_in %%%%%<br />

%%%%%% version.ira_mode %%%%%<br />

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

%%%%%% This function allows <strong>the</strong> user <strong>to</strong> load a set <strong>of</strong><br />

%%%%%% parameters <strong>to</strong> replicate <strong>the</strong> results <strong>of</strong> <strong>the</strong> <strong>the</strong>sis<br />

%%%%%% or enter his own settings. All data is s<strong>to</strong>red in<strong>to</strong><br />

%%%%%% <strong>the</strong> input.version structure.<br />

function [version] = DO_INPUT_VERSION ()<br />

%function [version] = DO_INPUT_VERSION ()<br />

disp(’%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% ’)<br />

disp(’%% You are asked <strong>to</strong> type in <strong>the</strong> number <strong>of</strong> iteratrions or <strong>to</strong> choose a %% ’)<br />

disp(’%% one <strong>of</strong> <strong>the</strong> following specifications for replicating <strong>the</strong> results in %% ’)<br />

disp(’%% my <strong>the</strong>sis which are <strong>the</strong> following: %% ’)<br />

disp(’%% %% ’)<br />

disp(’%% Version 1: Type in 1 %% ’)<br />

disp(’%% Version 2: Type in 2 %% ’)<br />

disp(’%% Version 3: Type in 3 %% ’)<br />

disp(’%% Version 4: Type in 4 %% ’)<br />

disp(’%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% ’)<br />

disp(’ ’)<br />

%disp(’%% Hit any key when ready... %% ’)<br />

%disp(’ ’)<br />

%pause;

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

Saved successfully!

Ooh no, something went wrong!