Using joint modeling, it was possible to simultaneously examine the effect of covariates on CD4 cell counts, the risk of TB, and death caused by HIV. Here, CD4 is linked to tuberculosis.