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

dynare_estimation_init.m: make sure OccBin estimation can be run after...

dynare_estimation_init.m: make sure OccBin estimation can be run after previous shocks(surprise) block

(cherry picked from commit 37eb1097)

# Conflicts:
#	matlab/dynare_estimation_init.m
parent 05b23bff
Branches
Tags
1 merge request!2136dynare_estimation_init.m: make sure OccBin estimation can be run after...
......@@ -714,4 +714,13 @@ if options_.occbin.smoother.status && options_.occbin.smoother.inversion_filter
fprintf('dynare_estimation_init: the inversion filter does not support smoothed_state_uncertainty. Disabling the option.\n')
options_.smoothed_state_uncertainty=false;
end
end
if options_.occbin.smoother.status || options_.occbin.likelihood.status
if isfield(M_,'surprise_shocks') && ~isempty(M_.surprise_shocks)
fprintf('dynare_estimation_init: OccBin smoother/filter: previous shocks(surprise) block detected. Deleting its content.\n')
options_.occbin.simul.SHOCKS=zeros(1,M_.exo_nbr);
options_.occbin.simul.exo_pos=1:M_.exo_nbr;
M_.surprise_shocks=[];
end
end
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment