error(['Initial value(s) of ',disp_string,' are outside parameter bounds. Potentially, you should set prior_trunc=0. If you used the mode_file-option, check whether your mode-file is consistent with the priors.'])
fprintf('PARAMETER INITIALIZATION: Warning, some deep parameters are not initialized. They will be\n')
fprintf('PARAMETER INITIALIZATION: initialized with the prior mean.\n')
end
end
xparam1=xparam1_explicitly_initialized;
xparam1(isnan(xparam1))=xparam1_properly_calibrated(isnan(xparam1));%set not explicitly initialized parameters that do not obviously violate prior distribution to calibrated parameter values
xparam1(isnan(xparam1))=xparam1_NaN_set_to_prior_mean(isnan(xparam1));%set not yet initialized parameters to prior mean coming from dynare_estimation_init
if~any(isnan(xparam1_calib))%all estimated parameters are calibrated
full_calibration_detected=1;
else
full_calibration_detected=0;
end
ifoptions_.use_calibration_initialization%set calibration as starting values
[xparam1,estim_params_]=do_parameter_initialization(estim_params_,xparam1_calib,xparam1);%get explicitly initialized parameters that have precedence to calibrated values
error(['Initial value(s) of ',disp_string,' are outside parameter bounds. Potentially, you should set prior_trunc=0. If you used the mode_file-option, check whether your mode-file is consistent with the priors.'])