Association between serum magnesium quintile and atrial fibrillation stratified by sex, Atherosclerosis Risk in Communities, 1987 to 2009. *Cox proportional hazards model adjusted for age, sex, race, study site, body mass index, high density lipoprotein cholesterol, low density lipoprotein cholesterol, serum potassium, serum creatinine, smoking status, drinking status, educational level, systolic blood pressure, diabetes, antihypertensive medication, and prevalent myocardial infarction, heart failure, or stroke. †The reference group is the third serum magnesium quintile.