SMS dit: Portfolio credit risk and macroeconomic shocks