Man pages for bensoltoff/rnflstats
Playing around with NFL stats and win-probability models

accuracy.measCalculate classification accuracy statistics.
best_kicking_optionUse the expected win probabilities to determine best kicking...
breakevenCalculates the breakeven point for making the decision.
calc_prob_successUse historical first down rates. When inside the opponent's...
calculate_featuresGenerate features needed for the win probability model that...
calculate_prob_possDetermine the starting point for the final possession in each...
calibration_plotProduces a calibration plot for the win probability model.
change_possHandles situation updating for all plays that involve a...
code_fourth_downsParse all fourth downs and determine if teams intended to go...
data_prepPrepare Armchair Analysis data for analysis.
dp_kneel_downCode a situation a 1 if the offense can kneel to end the game...
expected_win_probExpected value of win probability, factoring in p(success).
expected_wp_fgExpected WP from kicking, factoring in p(FG made).
fg_model_trainEstimate field goal success probability model using Armchair...
fg_success_rateHistorical field goal success rates by field position.
first_down_ratesFind the mean 1st down success rate at a given point in the...
generate_decisionDecide on optimal play based on game states and their...
generate_responseParent function called by the bot to make decisions on 4th...
generate_win_probabilitiesFor each of the possible scenarios, estimate the win...
get_historical_decisionCompare current game situation to historically similar...
group_coaches_decisionsGroup 4th down decisions by score difference and field...
join_df_first_down_ratesJoin the computed first down rates with the play by play...
kneel_downkneel_down
load_dataLoad previously compiled data and estimated win and field...
load_gamesLoad data containing results of each game and return a...
load_pbpLoad the play by play data and return a data frame.
missed_field_goalOpponent takes over from the spot of the kick.
model_trainEstimate win probability model using Armchair Analysis...
nyt_fg_modelSub in simple logit for field goal success rates.
plot_decisionCreate a plot of the decision state to go for it, attempt a...
plot_rocROC Plot
puntUse the average net punt distance (punt distance - return...
punt_averagesGroup punts by kicking field position to get average return...
qtrGiven the seconds left in the game, determine the current...
random_playGenerate a random play with plausible values for debugging...
run_botCalculate the expected win probability for a given game...
simulate_scenariosSimulate game state after each possible outcome. Possible...
switch_offenseSwap game state columns for offense & defense dependent...
bensoltoff/rnflstats documentation built on May 12, 2019, 2:08 p.m.