# Example 1: Moderate Risk Region
# Male, 60yo, Smoker, SBP 140, TC 5.0, HDL 1.0, HbA1c 50 mmol/mol, eGFR 70, Dx age 50
score2_diabetes_risk("male", 60, 1, 140, 5.0, 1.0, 50, 70, 50, "moderate")
# Example 2: High Risk Region (US Units)
# Female, 55yo, Non-smoker, SBP 130, TC 200 mg/dL, HDL 50 mg/dL, HbA1c 7.5per, eGFR 55, Dx age 45
score2_diabetes_risk("female", 55, 0, 130, 200, 50, 7.5, 55, 45, "high", "mg/dL", "per")
Run the code above in your browser using DataLab