We propose an approach to optimally select corporate bond portfolios based on bond-specific characteristics (maturity, credit rating, coupon, illiquidity, past performance, and issue size) and macroeconomic conditions (recessions and macroeconomic uncertainty measures). The approach relies on a parametric specification of the portfolio weights and allows us to consider a large cross-section of ...