# Example 1: Moderate Risk (Score 2)
# 68yo (+1), Hypertension (+1), No other factors
cha2ds2_va_score(68, 0, 1, 0, 0, 0)
# Example 2: High Risk (Score 5)
# 76yo (+2), Diabetes (+1), Prior Stroke (+2)
cha2ds2_va_score(76, 0, 0, 1, 1, 0)
Run the code above in your browser using DataLab