CD4 and insomnia measurement: Logistic regression indicated that insomnia (OR, 3.05; 95% CI, 1.63–5.72) and poor sleep quality (OR, 2.32; 95% CI, 1.21–4.45) were significantly associated with physical frailty in middle-aged and older PWH, especially in those with current CD4+ T-cell counts <350 cells/μL, but not in HIV-negative participants.