From 1def4f357ac6cffb1342c17de028ac7c4f6930e5 Mon Sep 17 00:00:00 2001 From: Johannes Pfeifer Date: Wed, 28 Oct 2015 15:34:14 +0100 Subject: [PATCH] Fix display of parameter names changed during estimation Relied on the wrong ordering --- matlab/initial_estimation_checks.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/matlab/initial_estimation_checks.m b/matlab/initial_estimation_checks.m index dff2d4dfe..69c3c9cd6 100644 --- a/matlab/initial_estimation_checks.m +++ b/matlab/initial_estimation_checks.m @@ -78,7 +78,7 @@ if isfield(EstimatedParameters,'param_vals') && ~isempty(EstimatedParameters.par if ~isempty(changed_par_indices) fprintf('\nThe steady state file internally changed the values of the following estimated parameters:\n') - disp(Model.param_names(changed_par_indices,:)); + disp(Model.param_names(EstimatedParameters.param_vals(changed_par_indices,1),:)); fprintf('This will override the parameter values drawn from the proposal density and may lead to wrong results.\n') fprintf('Check whether this is really intended.\n') warning('The steady state file internally changes the values of the estimated parameters.')