Learn R Programming

Sabermetrics (version 2.0)

eraminus: ERA-

Description

ERA- is a park-adjusted version of ERA

Usage

eraminus(ERA, ParkFactor, LeagueERA)

Arguments

ERA
Player ERA
ParkFactor
Park Factor
LeagueERA
League Average ERA

Value

Returns a value equal to (ERA+(ERA-(ERA*(ParkFactor/100))))/(LeagueERA)*100

Details

League Average is set to 100 each season. Each point below or above 100 is one percentage point better or worse than league average.

References

http://www.fangraphs.com/library/pitching/era-fip-xfip/ http://www.fangraphs.com/guts.aspx?type=pf&teamid=0&season=2014

See Also

era,fipminus,xfipminus

Examples

Run this code
## The function is currently defined as
function (ERA, ParkFactor, LeagueERA) 
{
    eraminus <- (ERA + (ERA - (ERA * (ParkFactor/100))))/(LeagueERA) * 
        100
    return(eraminus)
  }

Run the code above in your browser using DataLab