hormone: Hormone Data from page 107

Description Usage Format Details Source Examples

Description

The hormone data. Amount in milligrams of anti-inflammatory hormone remaining in 27 devices, after a certain number of hours (hrs) of wear.

Usage

1

Format

A data frame with 27 observations on the following 3 variables.

Lot

a character vector

hrs

a numeric vector

amount

a numeric vector

Details

The hormone data. Amount in milligrams of anti-inflammatory hormone remaining in 27 devices, after a certain number of hours (hrs) of wear. The devices were sampled from 3 different manufacturing lots, called A, B and C. Lot C looks like it had greater amounts of remaining hormone, but it also was worn the least number of hours.

The book uses this as an example for regression analysis.

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(hormone) 
if(interactive())par(ask=TRUE)
with(hormone, stripchart(amount ~ Lot))
with(hormone, plot(amount ~ hrs, pch=Lot))
abline( lm(amount ~ hrs, data=hormone, col="red2"))

Example output

'data.frame':	27 obs. of  3 variables:
 $ Lot   : chr  "A" "A" "A" "A" ...
 $ hrs   : num  99 152 293 155 196 53 184 171 52 376 ...
 $ amount: num  25.8 20.5 14.3 23.2 20.6 31.1 20.9 20.9 30.4 16.3 ...
Warning message:
In lm.fit(x, y, offset = offset, singular.ok = singular.ok, ...) :
 extra argumentcolwill be disregarded 

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

Related to hormone in bootstrap...