Diabetes mellitus, prior stroke or transient ischemic attack (TIA), carotid artery disease, elevated N-terminal pro–B-type natriuretic peptide (NT-proBNP), and reduced estimated glomerular filtration rate (eGFR) were independently associated with cognitive impairment. This evidence concerns the gene NPPB and diabetes mellitus.