%
% Status : main Dynare file 
%
% Warning : this file is generated automatically by Dynare
%           from model file (.mod)

clear all
tic;
global M_ oo_ options_ ys0_ ex0_ estimation_info
options_ = [];
M_.fname = 'Comparethem';
%
% Some global variables initialization
%
global_initialization;
diary off;
diary('Comparethem.log');
M_.exo_det_nbr = 0;
M_.exo_nbr = 0;
M_.endo_nbr = 0;
M_.param_nbr = 0;
M_.orig_endo_nbr = 0;
M_.aux_vars = [];
M_.Sigma_e = zeros(0, 0);
M_.Correlation_matrix = eye(0, 0);
M_.H = 0;
M_.Correlation_matrix_ME = 1;
M_.sigma_e_is_diagonal = 1;
options_.block=0;
options_.bytecode=0;
options_.use_dll=0;
erase_compiled_function('Comparethem_static');
erase_compiled_function('Comparethem_dynamic');
ModelNames_ = {};
ModelPriors_ = [];
ModelNames_ = { ModelNames_{:} '../NK/NK_financial'};
ModelPriors_ = [ ModelPriors_ ; 1];
ModelNames_ = { ModelNames_{:} '../GK/GK_financial'};
ModelPriors_ = [ ModelPriors_ ; 1];
ModelNames_ = { ModelNames_{:} '../BGG/BGG_financial'};
ModelPriors_ = [ ModelPriors_ ; 1];
model_comparison(ModelNames_,ModelPriors_,oo_,options_,M_.fname);
save('Comparethem_results.mat', 'oo_', 'M_', 'options_');
if exist('estim_params_', 'var') == 1
  save('Comparethem_results.mat', 'estim_params_', '-append');
end
if exist('bayestopt_', 'var') == 1
  save('Comparethem_results.mat', 'bayestopt_', '-append');
end
if exist('dataset_', 'var') == 1
  save('Comparethem_results.mat', 'dataset_', '-append');
end
if exist('estimation_info', 'var') == 1
  save('Comparethem_results.mat', 'estimation_info', '-append');
end


disp(['Total computing time : ' dynsec2hms(toc) ]);
if ~isempty(lastwarn)
  disp('Note: warning(s) encountered in MATLAB/Octave code')
end
diary off
