Returns game predictions using Barttorvik's model
Arguments
- team
Team for game
- opp
Opponent for game
- date
Date for game; YYYYMMDD format
- location
Location for game ('N', 'H', or 'A')
Value
Returns a tibble with eight columns:
team
character.
date
date.
location
character.
tempo
double.
ppp
double.
pts
double.
win_per
double.
did_win
logical.
Details
Function returns projected score, points per possession, tempo, and win percentage for a given match-up on a given day
Examples
bart_game_prediction(team='Duke', opp='North Carolina', date='20220402')
#> ── Duke vs. North Carolina Prediction ────────────────────────── toRvik 1.1.0 ──
#> ℹ Data updated: 2022-09-09 13:47:28 EDT
#> # A tibble: 2 × 8
#> team date location tempo ppp pts win_per did_win
#> <chr> <chr> <chr> <dbl> <dbl> <dbl> <dbl> <lgl>
#> 1 Duke Apr. 02, 2022 Neutral 70.3 1.13 79.2 62.6 TRUE
#> 2 North Carolina Apr. 02, 2022 Neutral 70.3 1.08 75.7 37.4 FALSE