In our motivating example from the epidemiology of human immunodeficiency virus (HIV) infection, patients receiving antiretroviral treatment (ART) can die while in care or disengage from care, which are competing risks; the number of CD4 cells is a longitudinal marker typically collected over time to keep track of HIV progression. The gene discussed is CD4; the disease is HIV infectious disease.