spreadprob_normal: Calculate the probability of each team beating the spread...

View source: R/spreadprob.R

spreadprob_normalR Documentation

Calculate the probability of each team beating the spread assuming normal errors

Description

Calculate the probability of each team beating the spread assuming normal errors

Usage

spreadprob_normal(
  design,
  home,
  away,
  hspread = 0,
  aspread = NULL,
  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

hspread

Point spread for the home team

aspread

Point spread for the away team

home_effect

Logical, indicates if there is home field advantage

Value

A data frame containing the teams and their win probabilities

Examples

G <- regssn2021
List <- get_design(G)
spreadprob_normal(List, "Patriots", "Bills", -5)

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