diff --git a/matlab/dynare_estimation.m b/matlab/dynare_estimation.m index 464453c8c..badc23ecd 100644 --- a/matlab/dynare_estimation.m +++ b/matlab/dynare_estimation.m @@ -819,7 +819,7 @@ if ~((any(bayestopt_.pshape > 0) & options_.mh_replic) | (any(bayestopt_.pshape %% yf = zeros(gend,n_varobs); if options_.prefilter == 1 - yf = atT(bayestopt_.mf,:)+repmat(transpose(mean_varobs),1,gend); + yf = atT(bayestopt_.mf,:)+repmat(transpose(bayestopt_.mean_varobs),1,gend); elseif options_.loglinear == 1 yf = atT(bayestopt_.mf,:)+repmat(log(ys(bayestopt_.mfys)),1,gend)+... trend_coeff*[1:gend]; diff --git a/matlab/resol.m b/matlab/resol.m index fc948be1d..878d38b59 100644 --- a/matlab/resol.m +++ b/matlab/resol.m @@ -19,12 +19,6 @@ if M_.exo_nbr == 0 oo_.exo_steady_state = [] ; end -if M_.maximum_exo_lag > 0 || M_.maximum_exo_lead > 0 - error (['RESOL: stochastic exogenous variables must appear only at the' ... - ' current period. Use additional endogenous variables']) ; -end - - % check if ys is steady state tempex = oo_.exo_simul; oo_.exo_simul = repmat(oo_.exo_steady_state',M_.maximum_lag+M_.maximum_lead+1,1);