randomSeriesWinner | R Documentation |
generate a random series winner given a home and away team
randomSeriesWinner(
home_team,
away_team,
home_wins = 0,
away_wins = 0,
homeAwayOdds = NULL,
params = NULL
)
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 |
TRUE if the home team wins, else FALSE
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.