Skip to content
Snippets Groups Projects
Commit 34928bcc authored by Marco Ratto's avatar Marco Ratto
Browse files

trap the case where the indicator is empty

parent 17ebcf43
No related branches found
No related tags found
1 merge request!2226Draft: several enhancements to solver, filtering/smoothing
......@@ -26,6 +26,9 @@ function [regime, regime_start, error_flag]=map_regime(binding_indicator,debug_s
% Journal of Monetary Economics 70, 22-38
error_flag=0;
if isempty(binding_indicator)
binding_indicator = false;
end
% analyse violvec and isolate contiguous periods in the other regime.
regime(1) = binding_indicator(1);
regime_index = 1;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment