Skip to contents

Simulates a match using default player skills (useful for testing).

Usage

quick_match_simulation(
  model,
  format = "t20",
  team1_skill = 0,
  team2_skill = 0,
  mode = "categorical"
)

Arguments

model

XGBoost model from load_full_model()

format

Character. Format: "t20", "odi"

team1_skill

Numeric. Overall skill adjustment for team 1 (-1 to 1)

team2_skill

Numeric. Overall skill adjustment for team 2 (-1 to 1)

mode

Character. "categorical" or "expected"

Value

Match result from simulate_match_ballbyball()

Examples

if (FALSE) { # \dontrun{
model <- load_full_model("shortform")
result <- quick_match_simulation(model, format = "t20")
result <- quick_match_simulation(model, format = "odi",
                                 team1_skill = 0.5, team2_skill = -0.3)
} # }