In our analysis, ageing, being male, and CD4 counts <200 cells/μL were significantly associated with diabetes by one or both tests. Here, CD4 is linked to diabetes mellitus.