World capital markets have experienced large scale sovereign defaults on a number of occasions. In this paper we develop a quantitative model of debt and default in a small open economy. We use this model to match four empirical regularities regarding emerging markets: defaults occur in equilibrium, interest rates are countercyclical, net exports are countercyclical, and interest rates and the current account are positively correlated. We highlight the role of the stochastic trend in emerging markets, in an otherwise standard model with endogenous default, to match these facts.
Matlab code for programs attached.