# Example 1: High Risk
# 70yo (+3), Male (+2), Diabetes (+1), HTN (+1), Nursing Home (+2)
# Score = 9
covid_risk_score(70, "male", 0, 0, 0, 0, 1, 1, 0, 0, 1)
# Example 2: Low Risk
# 30yo (0), Female (0), Asthma (+1)
# Score = 1
covid_risk_score(30, "female", 1, 0, 0, 0, 0, 0, 0, 0, 0)
Run the code above in your browser using DataLab