3 Essays On Credit Risk Modeling And The Macroeconomic Environment