steve {Flury}R Documentation

Steve's Basketball Data

Description

Steve shot a basketball six times from each distance (1 to 20 feet), the results of the first throw from each distance are recorded as a hit or a miss

Usage

data(steve)

Format

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

Distance
Distance between Steve and the basket
Hit.or.Miss
The result of Steve's first attempt at each distance, a factor with levels H M

Source

Flury, B.D. (1997) A First Course in Multivariate Statistics, New York: Springer

Examples

data(steve)
## Not run: 
steve.glm <- glm(Hit.or.Miss ~ Distance, family = binomial, data =
steve)
plot(steve, main = "Steve's basketball data", pch = 16)
lines(steve$Distance, predict(steve.glm, type = "response"))
## End(Not run)

[Package Flury version 0.1-2 Index]