Skip to contents

Get win probability and expected margin for an upcoming match between two teams.

Usage

predict_match(team1, team2, format = "t20", venue = NULL, db_path = NULL)

Arguments

team1

Character. First team name.

team2

Character. Second team name.

format

Character. Match format: "t20", "odi", "test".

venue

Character. Venue name (optional, for venue adjustment).

db_path

Character. Database path.

Value

A bouncer_prediction object.

See also

compare_teams for ELO comparison without full prediction, get_team to look up team ratings, analyze_match to analyze completed matches

Examples

if (FALSE) { # \dontrun{
pred <- predict_match("India", "Australia", format = "t20")
print(pred)
} # }