This paper outlines a framework based on microdata and a structural model to gauge credit risk in banks' exposures to non-financial firms. Sectoral risk factors are accounted for using a multi-factor model. We use expected and unexpected losses as indicators of credit risk stemming from the...