fixing bug for ML estimation when no priors are available
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1999 ac1d8469-bf42-47a9-8791-bf33cf982152time-shift
parent
f6019fe5ab
commit
842fc6631b
|
@ -83,14 +83,16 @@ if ~isempty(estim_params_)
|
|||
if options_.mode_compute
|
||||
plot_priors
|
||||
end
|
||||
% set prior bounds and check initial value of the parameters
|
||||
bounds = prior_bounds(bayestopt_);
|
||||
bounds(:,1)=max(bounds(:,1),lb);
|
||||
bounds(:,2)=min(bounds(:,2),ub);
|
||||
else
|
||||
options_.mh_replic = 0;
|
||||
bounds(:,1) = lb;
|
||||
bounds(:,2) = ub;
|
||||
end
|
||||
|
||||
% set prior bounds and check initial value of the parameters
|
||||
bounds = prior_bounds(bayestopt_);
|
||||
bounds(:,1)=max(bounds(:,1),lb);
|
||||
bounds(:,2)=min(bounds(:,2),ub);
|
||||
|
||||
if any(xparam1 < bounds(:,1)) | any(xparam1 > bounds(:,2))
|
||||
find(xparam1 < bounds(:,1))
|
||||
|
|
Loading…
Reference in New Issue