From d8105a3237d5f5886d27ff088b27ba4c22e6c7df Mon Sep 17 00:00:00 2001 From: Willi Mutschler <willi@mutschler.eu> Date: Fri, 1 Sep 2023 21:46:08 +0200 Subject: [PATCH] Cosmetical changes --- matlab/CheckPath.m | 4 ++-- matlab/display_estimation_results_table.m | 2 +- matlab/set_prior.m | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/matlab/CheckPath.m b/matlab/CheckPath.m index 794c2005bb..f32f8fa229 100644 --- a/matlab/CheckPath.m +++ b/matlab/CheckPath.m @@ -12,7 +12,7 @@ function [DirectoryName, info] = CheckPath(type,dname) % SPECIAL REQUIREMENTS % none -% Copyright © 2005-2017 Dynare Team +% Copyright © 2005-2023 Dynare Team % % This file is part of Dynare. % @@ -31,7 +31,7 @@ function [DirectoryName, info] = CheckPath(type,dname) info = 0; -DirectoryName = [ dname '/' type ]; +DirectoryName = [ dname filesep type ]; if ~isdir(dname) % Make sure there isn't a file with the same name, see trac ticket #47 diff --git a/matlab/display_estimation_results_table.m b/matlab/display_estimation_results_table.m index 92c8a53486..4d0b7031a4 100644 --- a/matlab/display_estimation_results_table.m +++ b/matlab/display_estimation_results_table.m @@ -174,7 +174,7 @@ if ncn end if any(xparam1(1:nvx+nvn)<0) - warning('Some estimated standard deviations are negative. Dynare internally works with variances so that the sign does not matter. Nevertheless, it is recommended to impose either prior restrictions (Bayesian Estimation) or a lower bound (ML) to assure positive values.') + warning(sprintf('Some estimated standard deviations are negative.\n Dynare internally works with variances so that the sign does not matter.\n Nevertheless, it is recommended to impose either prior restrictions (Bayesian Estimation)\n or a lower bound (ML) to assure positive values.')) end OutputDirectoryName = CheckPath('Output',M_.dname); diff --git a/matlab/set_prior.m b/matlab/set_prior.m index bc4fff302d..635568dc86 100644 --- a/matlab/set_prior.m +++ b/matlab/set_prior.m @@ -5,7 +5,7 @@ function [xparam1, estim_params_, bayestopt_, lb, ub, M_]=set_prior(estim_params % INPUTS % o estim_params_ [structure] characterizing parameters to be estimated. % o M_ [structure] characterizing the model. -% o options_ [structure] +% o options_ [structure] characterizing the options. % % OUTPUTS % o xparam1 [double] vector of parameters to be estimated (initial values) @@ -18,7 +18,7 @@ function [xparam1, estim_params_, bayestopt_, lb, ub, M_]=set_prior(estim_params % SPECIAL REQUIREMENTS % None -% Copyright © 2003-2018 Dynare Team +% Copyright © 2003-2023 Dynare Team % % This file is part of Dynare. % -- GitLab