cholost: The Cholostyramine Data

Description Usage Format Details Source Examples

Description

n=164 men took part in an experiment to see if the drug cholostyramine lowered blood cholesterol levels. The men were supposed to take six packets of cholostyramine per day, but many actually took much less.

Usage

1

Format

A data frame with 164 observations on the following 2 variables.

z

Compliance, a numeric vector

y

Improvement, a numeric vector

Details

In the book, this is used as an example for curve fitting, with two methods, traditional least-squares fitting and modern loess. In the book is considered linear and polynomial models for the dependence of Improvement upon Compliance.

Source

Efron, B. and Tibshirani, R. (1993) An Introduction to the Bootstrap. Chapman and Hall, New York, London.

Examples

1
2
3
4
5
str(cholost)
summary(cholost)
plot(y ~ z, data=cholost, xlab="Compliance", 
            ylab="Improvement")
abline(lm(y ~ z, data=cholost), col="red")

Example output

'data.frame':	164 obs. of  2 variables:
 $ z: num  0 27 71 95 0 28 71 95 0 29 ...
 $ y: num  -5.25 -1.5 59.5 32.5 -7.25 ...
       z                y          
 Min.   :  0.00   Min.   :-23.000  
 1st Qu.: 27.00   1st Qu.:  7.125  
 Median : 69.50   Median : 30.500  
 Mean   : 60.12   Mean   : 32.806  
 3rd Qu.: 95.00   3rd Qu.: 54.562  
 Max.   :100.00   Max.   :113.250  

bootstrap documentation built on June 17, 2019, 5:04 p.m.

Related to cholost in bootstrap...