# Example 1: High Risk
# 50yo Male (+7), Asian (+2), FamHx (+3), No Activity (+2), Waist 95 (+4)
# Score = 4 (Age) + 3 (Sex) + 2 (Eth) + 3 (Fam) + 2 (Act) + 4 (Waist) = 18
ausdrisk_score(50, "male", 1, 1, 0, 0, 0, 1, 0, 95)
# Example 2: Low Risk
# 30yo Female, No risk factors
# Score = 0
ausdrisk_score(30, "female", 0, 0, 0, 0, 0, 1, 1, 70)
Run the code above in your browser using DataLab