eML_normal: Calculate the expected value for wagering on each team...

View source: R/eML.R

eML_normalR Documentation

Calculate the expected value for wagering on each team assuming a normal distribution.

Description

Calculate the expected value for wagering on each team assuming a normal distribution.

Usage

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

Arguments

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

Value

A data frame containing the names of the two teams and the expected values for wagering on either moneyline.

Examples

G <- regssn2021
data <- get_design(G)
eML_normal(data, "Bills", "Patriots", wager = 20, hBL = -160, aBL = 180)

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