R Dataset / Package quantreg / uis


On this Picostat.com statistics page, you will find information about the uis data set which pertains to UIS Drug Treatment study data. The uis data set is found in the quantreg R package. You can load the uis data set in R by issuing the following command at the console data("uis"). This will load the data into a variable called uis. If R says the uis data set is not found, you can try installing the package by issuing this command install.packages("quantreg") 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 uis R data set. The size of this file is about 62,061 bytes.

UIS Drug Treatment study data


There are 628 data points in the original data, 575 of which have no missing values.

Variable descriptions:

Variable Description Codes/Values
ID Identification Code 1 - 628
AGE Age at Enrollment Years
BECK Beck DepressionScore 0.000 - 54.000
HC Heroin/Cocaine Use During 1 = Heroin & Cocaine
3 Months Prior to Admission 2 = Heroin Only
3 = Cocaine Only
4 = Neither Heroin nor Cocaine
IV History of IV Drug Use 1 = Never
2 = Previous
3 = Recent
NDT Number of Prior Drug Treatments 0 - 40
RACE Subject's Race 0 = White
1 = Non-White
TREAT Treatment Randomization 0 = Short
Assignment 1 = Long
SITE Treatment Site 0 = A
1 = B
LEN.T Length of Stay in Treatment Days
(Admission Date to Exit Date)
TIME Time to Drug Relapse Days
(Measured from Admission Date)
CENSOR Event for Treating Lost to 1 = Returned to Drugs
Follow-Up as Returned to Drugs or Lost to Follow-Up
0 = Otherwise
Y log of TIME
ND1 Component of NDT
ND2 Component of NDT
FRAC Compliance fraction LEN.T/90 for short trt
LEN.T/180 for long trt
IV3 Recent IV use 1 = Yes
0 = No




A data frame with dimension 575 by 18.


Table 1.3 of Hosmer,D.W. and Lemeshow, S. (1998)


Hosmer,D.W. and Lemeshow, S. (1998) Applied Survival Analysis: Regression Modeling of Time to Event Data, John Wiley and Sons Inc., New York, NY


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

Title Authored on Content type
R Dataset / Package psych / bfi March 9, 2018 - 1:06 PM Dataset
OpenIntro Statistics Dataset - scotus_healthcare August 9, 2020 - 2:38 PM Dataset
R Dataset / Package psych / withinBetween March 9, 2018 - 1:06 PM Dataset
R Dataset / Package Stat2Data / Kids198 March 9, 2018 - 1:06 PM Dataset
R Dataset / Package Ecdat / Wages1 March 9, 2018 - 1:06 PM Dataset
Attachment Size
dataset-69014.csv 60.61 KB
Dataset License
GNU General Public License v2.0
Documentation License
GNU General Public License v2.0