in_match_win | R Documentation |
This function calculates the conditional match win prediction for matches in progress conditioned on the current score
in_match_win(point_a, point_b, game_a, game_b, set_a, set_b, server.prob, returner.prob, bestof3 = TRUE, advantage = TRUE)
point_a |
Numeric game points won by current server at start of point |
point_b |
Numeric game points won by current returner at start of point |
game_a |
Numeric games won by current server in the current set |
game_b |
Numeric games won by current returner in the current set |
set_a |
Numeric sets won by current server |
set_b |
Numeric sets won by current returner |
server.prob |
Numeric serve win prob of current server |
returner.prob |
Numeric serve win prob of current returner |
bestof3 |
Logical indicator if best-of-3 match (TRUE) or best-of-5 (FALSE) |
advantage |
Logical if advantage set match (TRUE) or tiebreak match (FALSE) |
Numeric probability that current server will win the match
Barnett, T. (2013). Teaching probability theory through tennis. Strategic Games.
in_match_win(3, 2, 5, 5, 0, 0, 0.65, 0.63, bestof3 = T, advantage = F) in_match_win(2, 3, 5, 5, 0, 1, 0.65, 0.63, bestof3 = T, advantage = F)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.