From de1ad981111c29a10172afe02e75ffd76f8e0938 Mon Sep 17 00:00:00 2001 From: michel Date: Tue, 13 Dec 2005 12:53:57 +0000 Subject: [PATCH] v3 dynare_estimation: corrected bug whith mean_varobs when prefilter==1 git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@548 ac1d8469-bf42-47a9-8791-bf33cf982152 --- matlab/dynare_estimation.m | 2 +- matlab/resol.m | 6 ------ 2 files changed, 1 insertion(+), 7 deletions(-) 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);