steve {Flury} | R Documentation |
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
data(steve)
A data frame with 20 observations on the following 2 variables.
Distance
Hit.or.Miss
H
M
Flury, B.D. (1997) A First Course in Multivariate Statistics, New York: Springer
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)