winprob_normal: Calculate the win probability using assuming a normal...

View source: R/winprob.R

winprob_normalR Documentation

Calculate the win probability using assuming a normal distribution on point differential for each game

Description

Calculate the win probability using assuming a normal distribution on point differential for each game

Usage

winprob_normal(design, home, away, home_effect = TRUE, verbose = 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

home_effect

Logical, indicates if there is home field advantage

verbose

Logical, indicates if we want output to read win probabilities

Value

A data frame containing the teams and their win probabilities

Examples

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

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