fip: Field Independent Pitching (FIP)

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

Description

FIP is a statistic that measure a pitcher's performance independent of defense. FIP uses outcomes that do not take into account a team's defense.

Usage

1
fip(HR, BB, HBP, K, IP, year)

Arguments

HR

Homeruns given up

BB

Walks given up

HBP

Hit by pitches given up

K

Strikeouts

IP

Innings Pitched

year

Season

Details

While FIP is not a complete representation of a pitcher's performance, it is regarded as a better representation of performance than ERA.

Value

Returns a numerical vector equal to ((13*HR)+(3*(BB+HBP))-(2*K))/IP + constant

Constant = Season FIP Constant

Note

Innings Pitched (IP) is commonly reported with .1 indicating 1/3 of an inning and .2 indicating 2/3 of an inning. In order for this function to be accurate, please change the decimal to .333 for 1/3 of an inning and .666 for 2/3 of an inning.

Author(s)

Peter Xenopoulos

References

http://www.fangraphs.com/library/pitching/fip/

See Also

era, whip, xfip, fipminus

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## Let's calculate Clayton Kershaw's 2014 FIP
## He had 9 HR's, 31 BB's, 2 HBP's, 239 K's, and 198.333 IP's
## We should get 1.81 as our output
fip(9,31,2,239,198.333,2014)

## The function is currently defined as
function (HR, BB, HBP, K, IP, year) 
{
    constant <- weights$cFIP[which(weights$Season == year)]
    fip <- ((13 * HR) + (3 * (BB + HBP)) - (2 * K))/IP + constant
    return(fip)
  }

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