Defense-Independent Component ERA

Description

DICE represents a way to measure a pitcher's performance on the ERA scale using only events a pitcher can "control"

Usage

1
dice(hr, bb, hbp, k, ip)

Arguments

hr

Home Runs

bb

Walks

hbp

Hit By Pitches

k

Strikeouts

ip

Innings Pitched

Details

DICE uses the typical ERA scale.

Value

Returns a value equal to (13*hr+3*bb+3*hbp-2*k)/ip + 3.0

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

https://en.wikipedia.org/wiki/Defense-Independent_Component_ERA

See Also

era,fip,xfip,whip

Examples

1
2
3
4
5
6
## The function is currently defined as
function (hr, bb, hbp, k, ip) 
{
    dice = (13 * hr + 3 * bb + 3 * hbp - 2 * k)/ip + 3
    return(dice)
  }

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.