Adjusted cumulative incidence of atrial fibrillation (AF) in patients with (dashed line) and without (solid line) a diagnosis of insomnia. Covariates include age, sex, race, hypertension, diabetes, obstructive sleep apnea, coronary artery disease, congestive heart failure, smoking history, alcohol use, and income. HR = hazard ratio.