Learn R Programming

Flury (version 0.1-3)

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

Arguments

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)

Source

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

Details

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

References

Examples

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

Run the code above in your browser using DataLab