Last data update: 2014.03.03

R: Baseball Data
baseballR Documentation

Baseball Data

Description

Batting averages of 18 major league players through their first 45 official at bats of the 1970 season. These batting averages were published weekly in the New York Times, and by April 26, 1970.

Usage

data(baseball)

Format

A data set of 18 players with 12 covariates:

FirstName

each player's first name

LastName

each player's last name

At.Bats

number of times batted

Hits

each player's number of hits among 45 at bats

BattingAverage

batting averages among 45 at bats

RemainingAt.Bats

number of times batted after 45 at bats until the end of season

RemainingAverage

batting averages after 45 at bats until the end of season

SeasonAt.Bats

number of times batted over the whole season

SeasonHits

each player's number of hits over the whole season

SeasonAverage

batting averages over the whole season

League

1 if a player is in the National league

Position

each player's position

Source

Efron, B. and Morris, C. (1975). Data Analysis Using Stein's Estimator and its Generalizations. Journal of the American Statistical Association. 70. 311-319.

Examples

  data(baseball)

Results


R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> library(Rgbp)
Loading required package: sn
Loading required package: stats4

Attaching package: 'sn'

The following object is masked from 'package:stats':

    sd

Loading required package: mnormt
> png(filename="/home/ddbj/snapshot/RGM3/R_CC/result/Rgbp/baseball.Rd_%03d_medium.png", width=480, height=480)
> ### Name: baseball
> ### Title: Baseball Data
> ### Aliases: baseball
> ### Keywords: datasets
> 
> ### ** Examples
> 
>   data(baseball)
> 
> 
> 
> 
> 
> dev.off()
null device 
          1 
>