basketball {Flury}R Documentation

Basketball Data

Description

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

Usage

data(basketball)

Format

'basketball' is a data frame with 20 observations on the following 5 variables.

Distance
Distance from the hoop (feet)
Steve
Steve's score
Andy
Andy's Score
Chris
Chris' Score
Bernard
Bernard's Score (attempts abandoned after 10 feet)

Details

Further details on the experiment are given in Flury (1997), Table 7.5.4 (page 532)

Source

Flury, B.D. (1997) "A First Course in Multivariate Statistics", Springer NY

Examples

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)

[Package Flury version 0.1-2 Index]