Early Warning Systems: A Survey and a Regime-Switching Approach · Study