playoffSeriesOdds | R Documentation |
Given home and away win odds, produce the odds of the 'home advantage' team winning the series. From http://www.stat.umn.edu/geyer/playoff.html, modified to function with odds determination.
playoffSeriesOdds(
home_odds,
away_odds,
home_win = 0,
away_win = 0,
ngames = NULL,
game_home = NULL,
predict_games_to_win = FALSE
)
home_odds |
Team odds with home-ice advantage at home |
away_odds |
Team odds with home-ice advantage at away (on the road) |
home_win |
Number of home ice advantage team wins thus far in the series. Default to 0 (prediction before series start) |
away_win |
Number of away team wins thus far in the series |
ngames |
Number of games in the series, defaults to 7 |
game_home |
vector of T/F for 'home team' home games. Defaults for NHL best of 7 series: |
predict_games_to_win |
(Defualt False) If TRUE, returns the table of ways the series could finish. |
numeric odds of home team win series (1-odds for away odds)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.