R Dataset / Package mi / CHAIN

On this R-data statistics page, you will find information about the CHAIN data set which pertains to Subset of variables from the CHAIN project. The CHAIN data set is found in the mi R package. You can load the CHAIN data set in R by issuing the following command at the console data("CHAIN"). This will load the data into a variable called CHAIN. If R says the CHAIN data set is not found, you can try installing the package by issuing this command install.packages("mi") and then attempt to reload the data with the library() command. If you need to download R, you can go to the R project website. You can download a CSV (comma separated values) version of the CHAIN R data set. The size of this file is about 15,057 bytes.

Subset of variables from the CHAIN project


The CHAIN project was a longitudinal cohort study of people living with HIV in New York City, which was recruited in 1994 from a large number of medical care and social service agencies serving HIV in New York City. This subset of data pertain to the sixth round of interviews.




A data.frame with 532 observations on the following 8 variables.


log of self reported viral load level, where zero represents an undetectable level.


age at time of the interview


annual family income in 10 intervals


a continuous scale of physical health with a theoretical range between 0 and 100 where better health is associated with higher scale values


a binary measure of poor mental health ( 1=Yes, 0=No )


ordered interval for the CD4 count, which is an indicator of how much damage HIV has caused to the immune system


a three-level ordered variable: 0=Not currently taking HAART (Highly Active AntiretRoviral Therapy) 1=taking HAART but nonadherent, 2=taking HAART and adherent


A missing value in the log virus load level was assigned to individuals who either could not recall their viral load level, did not have a viral load test in the six month preceding the interview, or reported their viral loads as "good" or "bad".




Messeri P, Lee G, Abramson DA, Aidala A, Chiasson MA, Jones JD. (2003). “Antiretroviral therapy and declining AIDS mortality in New York City”. Medical Care 41:512–521.

Dataset imported from https://www.r-project.org.

Attachments: csv, json

<iframe src="https://pmagunia.com/iframe/r-dataset-package-mi-chain.html" width="100%" height="100%" style="border:0px"></iframe>