a significant trendP = 0.003
In the 25(OH)D3 quartile subgroup analysis, compared with the Q1 group, the Q3 (OR = 0.35, P = 0.034) and Q4 (OR = 0.25, P = 0.004) groups showed significantly lower odds of cognitive impairment, with a significant trend (P = 0.003).