wraa: Weighted Runs Above Average

Description Usage Arguments Details Value Note Author(s) References See Also Examples

Description

wRAA measure the number of offensive runs a player contributes compared to an average player.

Usage

1
wraa(woba, year, PA)

Arguments

woba

Weighted On Base Percentage. See woba

year

Season

PA

Plate Appearances

Details

wRAA is league adjusted, meaning you can use it to compare players from different leagues and years.

Value

Returns a value equal to ((wOBA - league wOBA) / wOBA scale) x PA

Note

Usually, Ten wRAA is equivalent to +1 win.

Author(s)

Peter Xenopoulos

References

http://www.fangraphs.com/library/offense/wraa/

See Also

woba

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
## Let's calculate Mike Trout's 2014 wRAA
## He had a wOBA of .402 and 705 PA's
## We should return 49.74
wraa(.402,2014,705)

## The function is currently defined as
function (woba, year, PA) 
{
    wraa <- ((woba - linearWeights$wOBA[which(linearWeights$Season == 
        year)])/weights$wOBAScale[which(linearWeights$Season == 
        year)]) * PA
    return(wraa)
  }

Sabermetrics documentation built on Jan. 15, 2017, 7:34 p.m.