randomSeriesWinner: Random Series Winner

View source: R/league.R

randomSeriesWinnerR Documentation

Random Series Winner

Description

generate a random series winner given a home and away team

Usage

randomSeriesWinner(
  home_team,
  away_team,
  home_wins = 0,
  away_wins = 0,
  homeAwayOdds = NULL,
  params = NULL
)

Arguments

home_team

Home Team name (required)

away_team

Away Team name (Required)

home_wins

Number of home wins (default 0)

away_wins

Number of away team wins (default 0)

homeAwayOdds

pre-calculated home & away team parings odds of a home win. Overrides playoffwin calculation

params

The named list containing m, rho, beta, eta, and k. See updateDC for information on the params list

Value

TRUE if the home team wins, else FALSE


pbulsink/HockeyModel documentation built on Dec. 16, 2024, 8:03 a.m.