wrc: Weighted Runs Created

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

Description

Weighted Runs Created is a statistic which attempts to credit a hitter for the value of each outcome.

Usage

1
wrc(wOBA, PA, year)

Arguments

wOBA

Weighted On Base Average

PA

Plate Appearances

year

Season

Details

wRC is reported with runs as the units

Value

Returns a value equal to (((wOBA-linearWeights$wOBA[which(linearWeights$Season == year)])/linearWeights$wOBAScale[which(linearWeights$Season == year)])+weights$RPerPA[which(linearWeights$Season == year)])*PA

Note

wRC is considered a better representation of offensive value than something like ops

Author(s)

Peter Xenopoulos

References

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

See Also

woba,wraa,wrcplus

Examples

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

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

peterxeno/sabermetrics-package documentation built on May 25, 2019, 2:10 a.m.