get_win_prob: Win Prob at End of Point

Description Usage Arguments Value

View source: R/winprob.R

Description

Gets players current chances of winning point based on score at end

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
get_win_prob(
  player1.score,
  player2.score,
  player1.games,
  player2.games,
  player1.sets,
  player2.sets,
  player1.serve.won,
  player1.serve.points,
  player2.serve.won,
  player2.serve.points,
  player1.serve.prob,
  player2.serve.prob,
  player1.won,
  player1.serving = T,
  format
)

Arguments

player1.score

Player points won at the start of current point

player2.score

Player points won at the start of current point

player1.games

Player number of games won in the current set

player2.games

Player number of games won in the current set

player1.sets

Player sets won in the current match

player2.sets

Player sets won in the current match

player1.serve.won

Player service points won in the current match

player1.serve.points

Player service points played in the current match

player2.serve.won

Player service points won in the current match

player2.serve.points

Player service points played in the current match

player1.serve.prob

Player expected probability of winning on serve from get_baseline

player2.serve.prob

Player expected probability of winning on serve from get_baseline

player1.won

Logical (TRUE or FALSE) whether player 1 won the current point

player1.serving

Logical (TRUE or FALSE) whether player 1 served the current point

format.

Character description of match format ('bestof3', 'laver', 'bestof5', 'doubles')

Value

data frame of player 1 and player 2 win probs


skoval/inmatch_api documentation built on Jan. 20, 2020, 4:14 a.m.