This paper develops a regime-switching newkeynesian model for a small open economy, with an occasionally binding financial friction that allows for endogenous financial crises. The model has two regimes: a regime for normal economic times, in which financial market access is unconstrained, and a...