espread_emp | R Documentation |
Predict the expected value of a wager for either team beating the spread assuming the empirical distribution
espread_emp(
design,
home,
away,
hspread = 0,
aspread = NULL,
home_effect = TRUE,
wager = 1,
hBL = -110,
aBL = -110
)
design |
List of season data as produced by get_design(), 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 |
hspread |
Point spread for the home team |
aspread |
Point spread for the away team |
home_effect |
Logical, indicates if we consider home field advantage |
wager |
Amount of money being wagered in dollars |
hBL |
The betting line for the home team against the spread, American |
aBL |
The betting line for the away team against the spread, American |
A dataframe indicating the expected value of wagering on each team to beat the spread.
List <- get_design(regssn2021)
espread_emp(List, "Patriots", "Bills", hspread = -5, hBL = -115, aBL = -105)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.