powered by
Compute the Run Expectancy at the beginning and end of every play in a data frame, as well as their difference (RE24).
makeWARre24(data, mod.re = NULL, ...)
A GameDayPlays object
GameDayPlays
an lm object giving the Run Expectancy Model. If NULL (the default), the run expectancy model will be generated from data
lm
data
currently ignored
a data frame with three columns: startExR, endExR, and delta. The latter is the change in run expectancy.
startExR
endExR
delta
# NOT RUN { Maymod.re = getModelRunExpectancy(May) re24 <- makeWARre24(May14) re24full <- makeWARre24(May14, mod.re = Maymod.re) sum(re24$delta) sum(re24full$delta) # }
Run the code above in your browser using DataLab