serve_loss_importance: Calculate Loss Importance for a Point

serve_loss_importanceR Documentation

Calculate Loss Importance for a Point

Description

This function calculates the match win prediction for matches in progress based on the current score

Usage

serve_loss_importance(id, serve.prob, return.prob, bestof3 = TRUE,
  advantage = TRUE)

Arguments

id

Score id for the start of the current point

return.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)

server.prob

Numeric serve win prob of current server

Value

Numeric value of importance


skoval/deuce documentation built on March 7, 2023, 2:39 p.m.