Scripts/Code to Calculate Firm-Level Risk Metrics