eML_normal | R Documentation |
Calculate the expected value for wagering on each team assuming a normal distribution.
eML_normal(
design,
home,
away,
wager = 1,
hBL = -110,
aBL = -110,
home_effect = TRUE
)
design |
List of season data as produced by XY_differences, contains design matrix X, scores Y_diff, and a list of teams |
home |
Name of the home team, could be a substring |
away |
Name of the away team, could be a substring |
wager |
Amount of money being wagered in dollars |
hBL |
The home team's moneyline given as American |
aBL |
The away team's moneyline given as American |
home_effect |
Logical, indicates if there is home field advantage |
A data frame containing the names of the two teams and the expected values for wagering on either moneyline.
G <- regssn2021
data <- get_design(G)
eML_normal(data, "Bills", "Patriots", wager = 20, hBL = -160, aBL = 180)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.