v4 set_parameters.m: bug when prior only on parameters

git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1022 ac1d8469-bf42-47a9-8791-bf33cf982152
time-shift
michel 2006-11-04 16:12:47 +00:00
parent bdf036e402
commit b45ad0d64c
1 changed files with 3 additions and 3 deletions

View File

@ -5,9 +5,9 @@ function set_parameters(xparam1)
ncx = estim_params_.ncx;
np = estim_params_.np;
Sigma_e = M_.Sigma_e;
offset = 0;
if nvx
offset = nvx;
offset = offset + nvx;
var_exo = estim_params_.var_exo;
for i=1:nvx
k = var_exo(i,1);
@ -16,7 +16,7 @@ function set_parameters(xparam1)
end
if ncx
offset = nvx + estim_params_.nvn;
offset = offset + estim_params_.nvn;
corrx = estim_params_.corrx;
for i=1:ncx
k1 = corrx(i,1);