Description Usage Arguments Details Value Note Author(s) References See Also Examples
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.
1 | fip(HR, BB, HBP, K, IP, year)
|
HR |
Homeruns given up |
BB |
Walks given up |
HBP |
Hit by pitches given up |
K |
Strikeouts |
IP |
Innings Pitched |
year |
Season |
While FIP is not a complete representation of a pitcher's performance, it is regarded as a better representation of performance than ERA.
Returns a numerical vector equal to ((13*HR)+(3*(BB+HBP))-(2*K))/IP + constant
Constant = Season FIP Constant
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.
Peter Xenopoulos
http://www.fangraphs.com/library/pitching/fip/
era, whip, xfip, fipminus
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)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.