Commit ad1608c9 authored by michel's avatar michel
Browse files

correcting bug in forecast when data are prefiltered

git-svn-id: https://www.dynare.org/svn/dynare/trunk@2377 ac1d8469-bf42-47a9-8791-bf33cf982152
parent bb838b30
......@@ -75,7 +75,7 @@ function info = forecast(var_list,task)
v_name = deblank(M_.endo_names(i,:));
y0(i,:) = y_smoothed.(v_name)(end-maximum_lag+1:end)+oo_.dr.ys(i);
end
gend = size(y0,2);
gend = options_.nobs;
if isfield(oo_.Smoother,'TrendCoeffs')
var_obs = options_.varobs;
endo_names = M_.endo_names;
......@@ -91,6 +91,10 @@ function info = forecast(var_list,task)
end
trend = trend_coeffs*(gend+(1-M_.maximum_lag:horizon));
end
global bayestopt_
if isfield(bayestopt_,'mean_varobs')
trend = trend + repmat(bayestopt_.mean_varobs,1,horizon+M_.maximum_lag);
end
otherwise
error('Wrong flag value')
end
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment