steve: Steve's Basketball Data

Description Usage Format Source Examples

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

1

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

1
2
3
4
5
6
7
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)

Flury documentation built on May 1, 2019, 6:50 p.m.