R: The Cholostyramine Data

cholost {bootstrap} | R Documentation

## 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")

[Package bootstrap version 2019.6 Index]