powered by
Find the Run Expectancy for a given state
getRunEx(data, drop.incomplete = TRUE, ...)
an MLBAM dataset
a LOGICAL indicating whether incomplete innings (e.g. walk-off innings) should be excluded from the run expectancy model. Default is TRUE.
currently ignored
A function that takes two arguments: baseCode and outs, and returns a run value
Given a data set, returns a function giving the run expectancy for any base/out state
# NOT RUN { #Data from May 2013 data(May) fit.rem = getRunEx(May) fit.rem(0,0) fit.rem(4,1) # }
Run the code above in your browser using DataLab