mlbstats0.1.0 package

Major League Baseball Player Statistics Calculator

ab_hr

Calculates at bats per home run

aera

Calculates adjusted earned run average (ERA+)

ba

Calculates batting average

baa

Calculates batting average against

babip

Calculates batting average on balls in play

bb_k

Calculates walk to strikeout ratio (batting)

bb9

Calculates bases on balls per nine innings pitched (W/9)

BsR

Calculates the base runs estimator

dice

Calculates defense-independent component earned run average

EqA

Calculates equivalent average

era

Calculates earned run average

erc

Calculates component earned run average

fip

Calculates fielding independent pitching

fp

Calculates fielding percentage

go_ao

Calculates ground outs-fly outs ratio (GO/AO)

gpa

Calculates gross production average

h9

Calculates hits per nine innings pitched (H/9IP)

iso

Calculates isolated power

k_bb

Calculates strikeout to walk ratio (pitching)

k9

Calculates strikeouts per nine innings pitched (K/9)

obp

Calculates on-base percentage

ops

Calculates on-base plus slugging

pa_so

Calculates plate appearances per strikeout (PA/SO)

pafa

Calculates park factor

pfr

Calculates power finesse ratio

ra

Calculates run average

rc

Calculates runs created

rc2

Calculates runs created accounting for stolen bases

rc3

Calculates runs created accounting for all offensive indicators

rfa

Calculates range factor

risp

Calculates batting average with runners in scoring position

rp

Calculates runs produced

sba

Calculates stolen base attempts

sbsr

Calculates stolen base success rate

slg

Calculates slugging percentage

ta

Calculates total average

tc

Calculates total chances

tob

Calculates times on base

vorp

Calculates value over replacement player (pitching)

whip

Calculates walks plus hits per innings pitched (WHIP)

wr

Calculates whiff rate

wra

Calculates win ratio

xbh

Calculates extra base hits

Computational functions for player metrics in major league baseball including batting, pitching, fielding, base-running, and overall player statistics. This package is actively maintained with new metrics being added as they are developed.

  • Maintainer: Philip D. Waggoner
  • License: MIT + file LICENSE
  • Last published: 2018-03-16