Longer duration of HIV infection, advanced clinical stage, lower CD4 cell count, and BMI are risk factors for anemia. Here, CD4 is linked to HIV infectious disease.