Learn R Programming

Flury (version 0.1-3)

steve: 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)

Arguments

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

Details

References

Examples

Run this code
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)

Run the code above in your browser using DataLab