View source: R/calculate_win_probability.R
calculate_win_probability | R Documentation |
This function returns the pregame win probability for a pair of teams, given each team's rating and the league type.
calculate_win_probability(TeamRating, OpponentRating, LeagueType)
TeamRating |
The rating of the first team playing in the game. The order of TeamRating and OpponentRating is interchangeable. |
OpponentRating |
The rating of the second team playing in the game. The order of TeamRating and OpponentRating is interchangeable. |
LeagueType |
The league type of the game. Should be equal to "mens" for men's games and "womens" for women's games. Other values will return an error. |
calculate_win_probability(1500,1400,"mens") calculate_win_probability(1500,1400,"womens")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.