Data were from randomized trials related to treatment for drug abuse obtained by the University of Massachusetts Aids Research Unit (UMARU) IMPACT Study (UIS). The main goal of the study was to compare treatment programs of different durations in the reduction of drug abuse and in the prevention of high-risk HIV behavior (Hosmer and Lemeshow, 2000). The variables on the dataset included here are age at enrollment, drug use history at admission, race, treatment group, treatment site, and patient's status at the end of the treatment program (remained drug free or otherwise). These data are copyrighted by John Wiley & Sons Inc. and are used here to illustrate the calculation of prevalence ratios and corresponding confidence intervals.
A data frame with 575 observations on the following 7 variables:
Age at enrollment (in years) recoded to 1= 32 years or younger, 0= more than 32 years-old.
Drug use history at admission (1=never, 2=previous, 3=recent). Recoded to 1= never and 0= previous or recent.
Subject's race (0=white, 1=other).
Treatment group (0=short, 1=long).
Treatment site (0=A, 1=B).
Returned to drug use prior to the scheduled end of the treatment program (1=remained drug free, 0=otherwise).
The data come from
Hosmer and Lemeshow (2000) Applied Logistic Regression. 2nd Edition, New York: John-Wiley & Sons.
These data are copyrighted by John Wiley & Sons Inc.
We acknowledged it and use the data to illustrate the methodology included in this library.
Weisberg, S. (2005) Applied Linear Regression. Wiley-Interscience.
1 2 3 4 5
Loading required package: boot Loading required package: stats4 Loading required package: lme4 Loading required package: Matrix Loading required package: Hmisc Loading required package: lattice Attaching package: 'lattice' The following object is masked from 'package:boot': melanoma Loading required package: survival Attaching package: 'survival' The following object is masked from 'package:boot': aml Loading required package: Formula Loading required package: ggplot2 Attaching package: 'Hmisc' The following objects are masked from 'package:base': format.pval, round.POSIXt, trunc.POSIXt, units trt drugFree 0 1 0 0.79 0.70 1 0.21 0.30
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.