todayOdds: Today's Odds

View source: R/league.R

todayOddsR Documentation

Today's Odds

Description

Determine today's games' odds (if today has games), or a specified date's odds

Usage

todayOdds(
  params = NULL,
  today = Sys.Date(),
  schedule = HockeyModel::schedule,
  expected_mean = NULL,
  season_percent = NULL,
  include_xG = FALSE
)

Arguments

params

The named list containing m, rho, beta, eta, and k. See updateDC for information on the params list

today

The date for which you want game odds

schedule

The schedule, default to internal schedule

expected_mean

the mean lambda & mu, used only for regression

season_percent

the percent complete of the season, used for regression

include_xG

Whether to include xG values in reported odds

Value

a data frame of HomeTeam, AwayTeam, HomeWin, AwayWin, Draw, or NULL if no games today

Examples

todayOdds(today = as.Date("2019-11-01"))

pbulsink/HockeyModel documentation built on Dec. 16, 2024, 8:03 a.m.