# Example 1: Low Risk
# 40yo Female, Normal BMI/Waist, Active, Healthy Diet, White, University
canrisk_diabetes_score(40, "female", 22, 70, 1, 1, 0, 0, 0, "none", "white", "university")
# Example 2: High Risk
# 55yo Male (+13+6), BMI 31 (+9), Waist 105 (+6), No Activity (+2),
#Parent DM (+4), High Risk Eth (+11)
# Score = 13+6+9+6+2+4+11 = 51
canrisk_diabetes_score(55, "male", 31, 105, 0, 1, 0, 0, 0, "parent_sibling", "high", "university")
Run the code above in your browser using DataLab