Non-fatal ASCVD events (myocardial infarction, angina, revascularization, stroke, transient ischemic attack, and peripheral artery disease) were analyzed using dynamic weighted survival modeling to predict the optimal treatment for each individual.The algorithm predicted 48% of individuals to have better ASCVD outcomes with GLP-1-RA and 52% with SGLT2i. Here, GLP1R is linked to transient ischemic attack.