Description Usage Format Details Source Examples
An experiment conducted on April 18th 1996 at Bryan Park, Bloomington, Indiana. These data record the number of successes within six attempts to hit a basketball from the distance recorded
1 |
'basketball' is a data frame with 20 observations on the following 5 variables.
DistanceDistance from the hoop (feet)
SteveSteve's score
AndyAndy's Score
ChrisChris' Score
BernardBernard's Score (attempts abandoned after 10 feet)
Further details on the experiment are given in Flury (1997), Table 7.5.4 (page 532)
Flury, B.D. (1997) "A First Course in Multivariate Statistics", Springer NY
1 2 3 4 5 6 7 | data(basketball)
## Not run:
bb <- glm(cbind(Andy, 6-Andy) ~ sqrt(Distance),
family = binomial, data = basketball)
with(basketball, (plot(Distance, Andy/6, main = "Andy's Success Rate") ))
lines(basketball$Distance, predict(bb, type = "response"))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.