espread_emp: Predict the expected value of a wager for either team beating...

View source: R/eSpread.R

espread_empR Documentation

Predict the expected value of a wager for either team beating the spread assuming the empirical distribution

Description

Predict the expected value of a wager for either team beating the spread assuming the empirical distribution

Usage

espread_emp(
  design,
  home,
  away,
  hspread = 0,
  aspread = NULL,
  home_effect = TRUE,
  wager = 1,
  hBL = -110,
  aBL = -110
)

Arguments

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

Value

A dataframe indicating the expected value of wagering on each team to beat the spread.

Examples

List <- get_design(regssn2021)
espread_emp(List, "Patriots", "Bills", hspread = -5, hBL = -115, aBL = -105)

przybylee/NFLpredictions documentation built on Feb. 9, 2025, 9:22 p.m.