Learn R Programming

bootstrap (version 2019.6)

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)

Arguments

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.

Examples

Run this code
# NOT RUN {
str(cholost)
summary(cholost)
plot(y ~ z, data=cholost, xlab="Compliance", 
            ylab="Improvement")
abline(lm(y ~ z, data=cholost), col="red")
# }

Run the code above in your browser using DataLab