Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

cholost

The Cholostyramine Data


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

data(cholost)

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

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

bootstrap

Functions for the Book "An Introduction to the Bootstrap"

v2019.6
BSD_3_clause + file LICENSE
Authors
S original, from StatLib, by Rob Tibshirani. R port by Friedrich Leisch.
Initial release
2019-06-15

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.