Health-related quality of life predicts survival, cytomegalovirus disease, and study retention in clinical trial participants with advanced HIV disease.