basketball {Flury} | R Documentation |
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
data(basketball)
'basketball' is a data frame with 20 observations on the following 5 variables.
Distance
Steve
Andy
Chris
Bernard
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
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)