R Dataset / Package boot / cd4


On this R-data statistics page, you will find information about the cd4 data set which pertains to CD4 Counts for HIV-Positive Patients. The cd4 data set is found in the boot R package. You can load the cd4 data set in R by issuing the following command at the console data("cd4"). This will load the data into a variable called cd4. If R says the cd4 data set is not found, you can try installing the package by issuing this command install.packages("boot") and then attempt to reload the data. 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 cd4 R data set. The size of this file is about 215 bytes.

CD4 Counts for HIV-Positive Patients


The cd4 data frame has 20 rows and 2 columns.

CD4 cells are carried in the blood as part of the human immune system. One of the effects of the HIV virus is that these cells die. The count of CD4 cells is used in determining the onset of full-blown AIDS in a patient. In this study of the effectiveness of a new anti-viral drug on HIV, 20 HIV-positive patients had their CD4 counts recorded and then were put on a course of treatment with this drug. After using the drug for one year, their CD4 counts were again recorded. The aim of the experiment was to show that patients taking the drug had increased CD4 counts which is not generally seen in HIV-positive patients.




This data frame contains the following columns:


The CD4 counts (in 100's) on admission to the trial.


The CD4 counts (in 100's) after one year of treatment with the new drug.


The data were obtained from

DiCiccio, T.J. and Efron B. (1996) Bootstrap confidence intervals (with Discussion). Statistical Science, 11, 189–228.


Davison, A.C. and Hinkley, D.V. (1997) Bootstrap Methods and Their Application. Cambridge University Press.


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

Title Authored on Content type
OpenIntro Statistics Dataset - dream August 9, 2020 - 12:25 PM Dataset
OpenIntro Statistics Dataset - winery_cars August 9, 2020 - 2:38 PM Dataset
R Dataset / Package HSAUR / toothpaste March 9, 2018 - 1:06 PM Dataset
R Dataset / Package HSAUR / pottery March 9, 2018 - 1:06 PM Dataset
R Dataset / Package HistData / Guerry March 9, 2018 - 1:06 PM Dataset
<iframe src="https://r-data.pmagunia.com/iframe/r-dataset-package-boot-cd4.html" frameBorder="0" width="100%" height="307px" />
Attachment Size
dataset-33868.csv 215 bytes
Dataset License
GNU General Public License v2.0
Documentation License
GNU General Public License v2.0

This documentation is licensed under GPLv3 or later.