Sovereign default: which shocks matter? Bernardo Guimaraes Review of Economic Dynamics gerafig1.m generates figure 1 (Appendix B.1) it uses the following m files: - dclose.m: deterministic closed economy, - dopen.m: deterministic open economy, - path1.m and path2.m: calculates the path to convergence of both economies. gerafig2.m generates figure 2 (Appendix B.2) it uses the following m files: - dd1c.m: calculates the value function in case of default, - stoch.m: solves the stochastic model with adjustment costs. both codes are probably not great in terms of efficiency. The codes use the auxiliary m files findk1.m, findd1.m, findd2.m, finddel1.m, deriva1.m