50% off: Unlimited data and AI learning.
The Learning Leader's Guide to AI Literacy

Sabermetrics (version 1.0)

rcPX: Runs Created (PX Model)

Description

Runs created model using linear weights from 2012, 2013 and 2014 MLB league data

Usage

rcPX(SINGLES, DOUBLES, TRIPLES, HR, BB, SB)

Arguments

SINGLES
Number of singles
DOUBLES
Number of doubles
TRIPLES
Number of triples
HR
Number of home runs
BB
Number of unintentional walks
SB
Number of stolen bases

Value

  • Returns -391.39753 + 0.44953*(SINGLES) + 0.85285*(DOUBLES) + 1.05912*(TRIPLES) + 1.36359*(HR) + 0.31761*(BB) + 0.21599*(SB)

References

http://peterxeno.com/linear-weights-in-baseball-sabermetrics/

See Also

rcBasic, rcBasicSB, rcTech

Examples

Run this code
## Let's say the LA Dodgers had 
## 952 singles, 302 doubles, 38 triples, 134 home runs, 519 walks, 
## 138 stolen bases

  rcPX(952,302,38,134,519,138) # Outputs 711.7296

Run the code above in your browser using DataLab