Skip to content
Snippets Groups Projects
Commit 7c318adf authored by Johannes Pfeifer's avatar Johannes Pfeifer
Browse files

:bug: occbin.DSGE_smoother.m: make sure used linear smoother results are computed

parent 152fb491
No related branches found
No related tags found
1 merge request!2325:bug: Enable smoother_inversion_filter option with MCMC
......@@ -137,8 +137,15 @@ catch ME
end
end
if error_indicator || isempty(alphahat0)
etahat= oo_.occbin.linear_smoother.etahat;
alphahat0= oo_.occbin.linear_smoother.alphahat0;
if ~options_.occbin.smoother.linear_smoother || nargin~=12 %make sure linear smoother results are set before using them
options_.occbin.smoother.status=false;
[~,etahat,~,~,~,~,~,~,~,~,~,~,~,~,~,~,alphahat0] = ...
DsgeSmoother(xparam1,gend,Y,data_index,missing_value,M_,oo_,options_,bayestopt_,estim_params_);
options_.occbin.smoother.status=true;
else
etahat= oo_.occbin.linear_smoother.etahat;
alphahat0= oo_.occbin.linear_smoother.alphahat0;
end
base_regime = struct();
if M_.occbin.constraint_nbr==1
base_regime.regime = 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment