v4 set_all_parameters: corrected bugs, M_.H needs to be set in dynare_estimation.m

git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@664 ac1d8469-bf42-47a9-8791-bf33cf982152
time-shift
michel 2006-03-08 21:10:00 +00:00
parent 14d6c2db49
commit d44de20724
1 changed files with 9 additions and 5 deletions

View File

@ -7,7 +7,8 @@ function set_all_parameters(xparam1)
ncn = estim_params_.ncn;
np = estim_params_.np;
Sigma_e = M_.Sigma_e;
H = M_.H;
if nvx
var_exo = estim_params_.var_exo;
for i=1:nvx
@ -48,9 +49,12 @@ function set_all_parameters(xparam1)
end
if np
offset = offset+estim_params_.ncx+estim_params_.ncn;
M_.params(estim_params_.param_vals(:,1)) = deep(offset+1:end);
offset = nvx+ncx+nvn+ncn;
M_.params(estim_params_.param_vals(:,1)) = xparam1(offset+1:end);
end
M_.Sigma_e = Sigma_e;
M_.H = H;
if nvx
M_.Sigma_e = Sigma_e;
end
if
M_.H = H;