IVF: only store smoother results if requested

unit-tests
Johannes Pfeifer 2022-11-23 16:44:18 +01:00
parent 1e2fb88d32
commit 80f6799c38
1 changed files with 1 additions and 10 deletions

View File

@ -113,7 +113,6 @@ else
atT = stateval(:,DynareResults.dr.order_var)';
innov = zeros(Model.exo_nbr,sample_length);
innov(diag(Model.Sigma_e)~=0,:)=filtered_errs';
updated_variables = atT*nan;
end
nobs=size(filtered_errs,1);
@ -191,12 +190,4 @@ end
% remember that the likelihood has already been multiplied by -1
% hence, posterior is -1 times the log of the prior
fval = like+prior;
BayesInfo.mf = BayesInfo.smoother_var_list(BayesInfo.smoother_mf);
initDynareOptions=DynareOptions;
DynareOptions.nk=[]; %unset options_.nk and reset it later
[DynareResults]=store_smoother_results(Model,DynareResults,DynareOptions,BayesInfo,dataset_,obs_info,atT,innov,[],updated_variables,DynareResults.dr.ys,zeros(length(DynareOptions.varobs_id),1));
DynareOptions=initDynareOptions;
fval = like+prior;