# Example 1: High Risk
# 85yo (+6), Female (+1), Prior Stroke (+4)
# Score = 11
atria_stroke_risk(85, 1, 1, 0, 0, 0, 0, 0)
# Example 2: Low Risk
# 70yo (+3), HTN (+1), No other factors
# Score = 4
atria_stroke_risk(70, 0, 0, 0, 0, 1, 0, 0)
Run the code above in your browser using DataLab