Skip to content
Snippets Groups Projects
Verified Commit 72f1035d authored by Johannes Pfeifer's avatar Johannes Pfeifer Committed by Sébastien Villemot
Browse files

load_results_after_load_mh: fix location of file

(cherry picked from commit 905e7c43)
parent 2e764c8c
No related branches found
No related tags found
No related merge requests found
...@@ -641,7 +641,7 @@ end ...@@ -641,7 +641,7 @@ end
estim_params_= get_matrix_entries_for_psd_check(M_,estim_params_); estim_params_= get_matrix_entries_for_psd_check(M_,estim_params_);
if options_.load_results_after_load_mh if options_.load_results_after_load_mh
if ~exist([M_.fname '_results.mat'],'file') if ~exist([M_.dname filesep 'Output' filesep M_.fname '_results.mat'],'file')
fprintf('\ndynare_estimation_init:: You specified the load_results_after_load_mh, but no _results.mat-file\n') fprintf('\ndynare_estimation_init:: You specified the load_results_after_load_mh, but no _results.mat-file\n')
fprintf('dynare_estimation_init:: was found. Results will be recomputed.\n') fprintf('dynare_estimation_init:: was found. Results will be recomputed.\n')
options_.load_results_after_load_mh=0; options_.load_results_after_load_mh=0;
......
...@@ -119,7 +119,10 @@ if ~isoctave ...@@ -119,7 +119,10 @@ if ~isoctave
end end
end end
save('fs2000_result.mat','oo_') if ~exist([M_.dname filesep 'Output'],'dir')
mkdir(M_.dname,'Output');
end
save([M_.dname filesep 'Output' filesep 'fs2000_results.mat'], 'oo_');
options_.load_results_after_load_mh=1; options_.load_results_after_load_mh=1;
estimation(mode_compute=0,mode_file='fs2000/Output/fs2000_mode',order=1, datafile=fsdat_simul, nobs=192, loglinear, mh_replic=0, mh_nblocks=1, mh_jscale=10,load_mh_file,smoother) gy_obs gp_obs; estimation(mode_compute=0,mode_file='fs2000/Output/fs2000_mode',order=1, datafile=fsdat_simul, nobs=192, loglinear, mh_replic=0, mh_nblocks=1, mh_jscale=10,load_mh_file,smoother) gy_obs gp_obs;
oo_.MarginalDensity.LaplaceApproximation = Laplace; %reset correct Laplace oo_.MarginalDensity.LaplaceApproximation = Laplace; %reset correct Laplace
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment