baseball {corrgram}R Documentation

Baseball Hitter's Data

Description

The data are for 322 Major Leaque Baseball regular and substitute hitters in 1986.

Usage

data(baseball)

Format

A data frame with 322 observations on the following 22 variables.

Name
The hitter/player's name
League
Player's league (American/National) at the beginning of 1987
Team
Player's team at the beginning of 1987
Position
Player's position in 1986: 1B (first base), 2B (second base), 3B (third base), C (catcher), OF (outfield), DH (designated hitter), SS (short stop), UT (utility).
Atbat
Number of times at bat in 1986
Hits
Number of hits in 1986
Homer
Number of home runs in 1986
Runs
Number of runs in 1986
RBI
Runs batted in during 1986
Walks
Number of walks in 1986
Years
Number of years in the major leagues
Atbatc
Number of times at bat in his career
Hitsc
Number of hits in career
Homerc
Number of home runs in career
Runsc
Number of runs in career
RBIc
Number of Runs Batted In in career
Walksc
Number of walks in career
Putouts
Number of putouts in 1986
Assists
Number of assists in 1986
Errors
Number of errors in 1986
Salary
Annual salary (in thousands) on opening day 1987
logSal
Log of salary

Details

The levels of the player's positions have been collapsed to fewer levels for a simpler analysis. See the original data for the full list of positions.

Source

The version of the data used to create this data was found at http://euclid.psych.yorku.ca/ftp/sas/sssg/data/baseball.sas. Michael Friendly analyzed the data in: Corrgrams: Exploratory Displays for Correlation Matrices, The American Statistician, Nov 2002, Vol 56. Online at: http://www.math.yorku.ca/SCS/Papers/corrgram.pdf.

References

The data was originally published for the 1988 ASA Statistical Graphics and Computing Data Exposition: http://lib.stat.cmu.edu/data-expo/1988.html. The salary data were taken from Sports Illustrated, April 20, 1987. The salary of any player not included in that article is listed as an NA. The 1986 and career statistics were taken from The 1987 Baseball Encyclopedia Update published by Collier Books, Macmillan Publishing Company, New York.

More information about the game of baseball can be found Wikipedia, http://en.wikipedia.org/wiki/Baseball.

Examples

data(baseball)
## maybe str(baseball) ; plot(baseball) ...

[Package corrgram version 0.1 Index]