fixed bug with calibrated models in dyn_estimation_init.m introduced

in commit 952139b
time-shift
Michel Juillard 2013-09-18 11:23:47 +02:00
parent 9a0df42970
commit a29db4175d
1 changed files with 4 additions and 2 deletions

View File

@ -218,7 +218,8 @@ if ~isempty(estim_params_) && ~isempty(options_.mode_file) && ~options_.mh_poste
skipline()
end
if ~isempty(estim_params_) && any(bayestopt_.pshape > 0)
if ~isempty(estim_params_) % estimated parameters
if any(bayestopt_.pshape > 0) % declared priors
% Plot prior densities.
if ~options_.nograph && options_.plot_priors
plot_priors(bayestopt_,M_,estim_params_,options_)
@ -227,12 +228,13 @@ if ~isempty(estim_params_) && any(bayestopt_.pshape > 0)
bounds = prior_bounds(bayestopt_,options_);
bounds(:,1)=max(bounds(:,1),lb);
bounds(:,2)=min(bounds(:,2),ub);
else
else % estimated parameters but no declared priors
% No priors are declared so Dynare will estimate the model by
% maximum likelihood with inequality constraints for the parameters.
options_.mh_replic = 0;% No metropolis.
bounds(:,1) = lb;
bounds(:,2) = ub;
end
end
if ~isempty(estim_params_)