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-bf33cf982152time-shift
parent
4a654eddae
commit
de1ad98111
|
@ -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];
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue