diff --git a/matlab/CheckPath.m b/matlab/CheckPath.m index 794c2005bb0ab58ed87b74443c6c1fc954a17f68..f32f8fa22998e8f54b6c910beaa3195defcf0814 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 92c8a53486289d8bed5d7c91c7ea39f26ddfa14b..4d0b7031a45460e27b5384d4456cae99d6e496ba 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 bc4fff302d56c8aa5209896ef9c3979f727607e7..635568dc861804863848ddc499ba25568e2b880e 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. %