In multiple linear regression models adjusted for age, sex, education levels, depression scales (CES-D), and comorbidities (diabetes mellitus, hypertension, dyslipidemia, and coronary artery disease), higher levels of log-transformed RANKL were associated with better MoCA scores (β coefficient 1.12, 95% confidence interval (CI) 0.08 to 2.16; model 2) and better CASI scores (β coefficient 2.88, 95% CI 0.27 to 5.49; model 2). This evidence concerns the gene TNFSF11 and diabetes mellitus.