From 9376d617c5d08f33a0e96713f3970ea0e401d5d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Adjemian=20=28Scylla=29?= <stephane.adjemian@univ-lemans.fr> Date: Tue, 10 Dec 2013 16:31:52 +0100 Subject: [PATCH] Fixed typo. (cherry picked from commit 4afcf8fdafafee457fdad9626a466b4959f8d0f6) --- matlab/dynare_estimation_init.m | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/matlab/dynare_estimation_init.m b/matlab/dynare_estimation_init.m index c17a89926..07188a23a 100644 --- a/matlab/dynare_estimation_init.m +++ b/matlab/dynare_estimation_init.m @@ -130,13 +130,14 @@ if ~isempty(estim_params_) && ~isempty(options_.mode_file) && ~options_.mh_poste number_of_estimated_parameters = length(xparam1); mode_file = load(options_.mode_file); if number_of_estimated_parameters>length(mode_file.xparam1) + % More estimated parameters than parameters in the mode file. skipline() disp(['The posterior mode file ' options_.mode_file ' has been generated using another specification of the model or another model!']) disp(['Your mode file contains estimates for ' int2str(length(mode_file.xparam1)) ' parameters, while you are attempting to estimate ' int2str(number_of_estimated_parameters) ' parameters:']) for i=1:number_of_estimated_parameters id = strmatch(deblank(bayestopt_.name(i,:)),mode_file.parameter_names,'exact'); if isempty(id) - disp(['--> Estimated parameter ' bayestopt_.name{i} ' is not present in the loaded mod_file.']) + disp(['--> Estimated parameter ' bayestopt_.name{i} ' is not present in the loaded mode file.']) end end for i=1:length(mode_file.xparam1) @@ -147,6 +148,7 @@ if ~isempty(estim_params_) && ~isempty(options_.mode_file) && ~options_.mh_poste end error('Please change the mode_file option or the list of estimated parameters.') elseif number_of_estimated_parameters<length(mode_file.xparam1) + % Less estimated parameters than parameters in the mode file. skipline() disp(['The posterior mode file ' options_.mode_file ' has been generated using another specification of the model or another model!']) disp(['Your mode file contains estimates for ' int2str(length(mode_file.xparam1)) ' parameters, while you are attempting to estimate only ' int2str(number_of_estimated_parameters) ' parameters:']) -- GitLab