spreadprob_emp | R Documentation |
Compute win probability using the empirical distribution
spreadprob_emp(
design,
home,
away,
hspread = 0,
aspread = NULL,
home_effect = TRUE
)
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 |
The listed point spread for the home team |
aspread |
The listed point spread for the away team |
home_effect |
Logical, indicates if there is home field advantage |
A data frame containing the teams and their probabilities of beating the spread
design <- get_design(regssn2021)
spreadprob_emp(design, "Patriots", "Bills", hspread = 5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.