The paper investigates the impact on credit risk of capital structure choices driven by firm's investments and financing decisions. We propose a realistic dynamic structural model featuring endogenous investment, capital structure and default. We calibrate the model on accounting and market...