eML_emp: Calculate the expected value of wagering on either team's...

View source: R/eML.R

eML_empR Documentation

Calculate the expected value of wagering on either team's moneyline using the empircal distribution.

Description

Calculate the expected value of wagering on either team's moneyline using the empircal distribution.

Usage

eML_emp(
  design,
  home,
  away,
  wager = 1,
  hBL = -110,
  aBL = -110,
  home_effect = TRUE
)

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

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

Value

A data frame indicating the the expected values from wagering on each team's moneyline based on the empircal distribution.

Examples

design <- get_design(regssn2021)
eML_emp(design, "Rams", "Bengals", wager = 100, hBL = -155, aBL = 185)

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