calculate_win_probability: Get pregame win probability

View source: R/calculate_win_probability.R

calculate_win_probabilityR Documentation

Get pregame win probability

Description

This function returns the pregame win probability for a pair of teams, given each team's rating and the league type.

Usage

calculate_win_probability(TeamRating, OpponentRating, LeagueType)

Arguments

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.

Examples

calculate_win_probability(1500,1400,"mens")
calculate_win_probability(1500,1400,"womens")

bbwieland/fRisbee documentation built on Aug. 30, 2022, 11:18 p.m.