batavgs {rvalues} | R Documentation |
Batting Averages Data
Description
Data set containing number of at-bats and number of hits for Major League baseball players over the 2005 season.
Usage
data(batavgs)
Format
A data frame with 929 observations on the following 7 variables.
First.Name
factor; player's last name
Last.Name
factor; player's first name
Pitcher
numeric vector; an indicator of whether or not the player is a pitcher
midseasonAB
numeric vector; number of at-bats during the first half of the season
midseasonH
numeric vector; number of hits during the first half of the season
TotalAB
numeric vector; total number of at-bats over the season
TotalH
numeric vector; total number of hits over the season
Details
The 2005 Major League Baseball season was roughly six months starting from the beginning of April and ending at the beginning of October. Data from postseason play is not included. The midseason data were obtained by only considering the first three months of the season.
Source
http://projecteuclid.org/DPubS?service=UI&version=1.0&verb=Display&handle=euclid.aoas/1206367815
References
Brown, L. D. (2008), In-Season prediction of batting averages: a field test of empirical Bayes and Bayes Methodologies, The Annals of Applied Statistics, 2, 1, 113–152.
Examples
data(batavgs)
head(batavgs)