Run a simulation to determine how many games a team is projected to win using their schedule at any given date in the season.
Usage
cbd_torvik_season_simulation(
team,
year,
simulations = 10000,
date = NULL,
include_postseason = FALSE
)
Arguments
- team
Team to predict with.
- year
Year to run prediction on.
- simulations
An integer representing how many sims. to run (defaults to 10,000).
- date
Date of game and must be a consecutive string in YYYYMMDD format (defaults to current day).
- include_postseason
A boolean representing whether conference tournament and other postseason games should be included in the simulation (defaults to FALSE).
Examples
try(cbd_torvik_season_simulation('Duke', 2023, date = '20230101'))
#> We notice that this is your first time logging into `cbbdata`.
#> This process will require restarting your R session.
#> Do you want to continue [Y/N]
#>
#> Invalid username or password!
#> Error in cbbdata::cbd_login() : object 'resp' not found