Last data update: 2014.03.03

R: Baseball Salaries
bbsalariesR Documentation

Baseball Salaries

Description

Salaries of 176 professional baseball players for the 1987 season.

Usage

data(bbsalaries)

Format

A data frame with 176 observations on the following 8 variables.

logYears

Log of the number of years experience

aveWins

Average wins per year

aveLosses

Average losses per year

era

Earned Run Average

aveGames

Average games pitched in per year

aveInnings

Average number of innings pitched per year

aveSaves

Average number of saves per year

logSalary

Log of the base salary in dollars

Source

http://lib.stat.cmu.edu/datasets/baseball.data

References

Hettmansperger, T.P. and McKean J.W. (2011), Robust Nonparametric Statistical Methods, 2nd ed., New York: Chapman-Hall.

Examples

data(bbsalaries)
summary(rfit(logSalary~logYears+aveWins+aveLosses+era+aveGames+aveInnings+aveSaves,data=bbsalaries))

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(Rfit)
Loading required package: quantreg
Loading required package: SparseM

Attaching package: 'SparseM'

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

    backsolve

> png(filename="/home/ddbj/snapshot/RGM3/R_CC/result/Rfit/bbsalaries.Rd_%03d_medium.png", width=480, height=480)
> ### Name: bbsalaries
> ### Title: Baseball Salaries
> ### Aliases: bbsalaries
> ### Keywords: datasets
> 
> ### ** Examples
> 
> data(bbsalaries)
> summary(rfit(logSalary~logYears+aveWins+aveLosses+era+aveGames+aveInnings+aveSaves,data=bbsalaries))
Call:
rfit.default(formula = logSalary ~ logYears + aveWins + aveLosses + 
    era + aveGames + aveInnings + aveSaves, data = bbsalaries)

Coefficients:
              Estimate Std. Error t.value p.value    
(Intercept)  4.2192063  0.3244222 13.0053 < 2e-16 ***
logYears     0.8390068  0.0438083 19.1518 < 2e-16 ***
aveWins      0.0450355  0.0276700  1.6276 0.10549    
aveLosses   -0.0241931  0.0263085 -0.9196 0.35910    
era         -0.1459940  0.0690205 -2.1152 0.03589 *  
aveGames     0.0061461  0.0038500  1.5964 0.11228    
aveInnings   0.0042364  0.0026112  1.6224 0.10660    
aveSaves     0.0120950  0.0113292  1.0676 0.28723    
---
Signif. codes:  0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1

Multiple R-squared (Robust): 0.7060163 
Reduction in Dispersion Test: 57.63719 p-value: 0 

> 
> 
> 
> 
> 
> dev.off()
null device 
          1 
>