fixing problem in computation of initial posterior density when steady

state model is provided by the user
time-shift
Michel Juillard 2011-12-14 21:05:48 +01:00
parent 3bc349402f
commit ad2a3a7ecc
1 changed files with 8 additions and 1 deletions

View File

@ -322,7 +322,14 @@ else
steadystate_check_flag = 1;
end
oo_.steady_state = evaluate_steady_state(oo_.steady_state,M_,options_,oo_,steadystate_check_flag);
M = M_;
nvx = estim_params_.nvx;
ncx = estim_params_.ncx;
nvn = estim_params_.nvn;
ncn = estim_params_.ncn;
M.params(estim_params_.param_vals(:,1)) = xparam1(nvx+ncx+nvn+ncn+1:end);
oo_.steady_state = evaluate_steady_state(oo_.steady_state,M,options_,oo_,steadystate_check_flag);
if all(abs(oo_.steady_state(bayestopt_.mfys))<1e-9)
options_.noconstant = 1;
else