makeWARBaserunning: Computes RAA for each baserunner.

Description Usage Arguments Details Value

Description

Calculates the runs above average (RAA) created by each baserunner.

Usage

1

Arguments

data

An MLBAM data.frame

...

currently ignored

Details

These RAA values are calculated by first computing the expected number of bases advanced given a starting position (e.g. runner on second) and an event (e.g. Single). Runners are attributed RAA based on how much they exceeded or underperformed relative to the expected number of bases advanced given an event. For example, a baserunner who advances exactly the expected number of bases given an event would not be attributed any RAA for that play.

Value

A data.frame with 4 columns: baserunner id, raa for the runner on first base, raa for the runner on second base, and raa for the runner on third base.


beanumber/openWAR documentation built on May 12, 2019, 9:43 a.m.